diff --git a/bin/cdist-code-run-all b/bin/cdist-code-run-all
index 49af7b3b..f301864b 100755
--- a/bin/cdist-code-run-all
+++ b/bin/cdist-code-run-all
@@ -40,7 +40,7 @@ while [ $# -ge 1 ]; do
    # Code local
    cdist-code-run "$__cdist_out_object_dir" "$object" \
       "${__cdist_name_gencode_local}"                 \
-         || __cdist_exit_err "Remote code failed for $object"
+         || __cdist_exit_err "Local code failed for $object"
 
    # Code remote
    cdist-run-remote "$__cdist_target_host"                                 \