Fix wrong format used in the recent python exit code commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 31 Dec 2015 13:02:54 +0000 (18:02 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 31 Dec 2015 13:02:54 +0000 (18:02 +0500)
source/creator/creator.c

index b947d55d2ff451d02c0a7cc8997fe886538bb83d..ca8a9f8760daf5f3048c99c75458836c29216060 100644 (file)
@@ -1377,7 +1377,7 @@ static int run_python_file(int argc, const char **argv, void *data)
                bool ok;
                BPY_CTX_SETUP(ok = BPY_execute_filepath(C, filename, NULL));
                if (!ok && python_exit_code_on_error) {
-                       printf("\nError: script failed, file: '%s', exiting.\n", argv[1], python_exit_code_on_error);
+                       printf("\nError: script failed, file: '%s', exiting with code %d.\n", argv[1], python_exit_code_on_error);
                        exit(python_exit_code_on_error);
                }
                return 1;