Fix wrong format used in the recent python exit code commit

This commit is contained in:
Sergey Sharybin
2015-12-31 18:02:54 +05:00
parent 619946253e
commit 702372f6c5

View 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;