diff options
author | dogboydog <dogboydog@users.noreply.github.com> | 2022-10-28 16:59:25 -0400 |
---|---|---|
committer | dogboydog <dogboydog@users.noreply.github.com> | 2022-10-29 00:37:47 -0400 |
commit | 16b35b59d15788093dba043aaad3431daefdaa76 (patch) | |
tree | d0057a1ccb5d030de9b6240884c8f7ee8f47cc8d /main | |
parent | 11e1bac768349ae821647a582282458e83b8d72b (diff) |
set exit code EXIT_FAILURE when --build-solutions fails
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index dbaf42b3e4..061d952558 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -3227,10 +3227,12 @@ bool Main::iteration() { auto_build_solutions = false; // Only relevant when running the editor. if (!editor) { + OS::get_singleton()->set_exit_code(EXIT_FAILURE); ERR_FAIL_V_MSG(true, "Command line option --build-solutions was passed, but no project is being edited. Aborting."); } if (!EditorNode::get_singleton()->call_build()) { + OS::get_singleton()->set_exit_code(EXIT_FAILURE); ERR_FAIL_V_MSG(true, "Command line option --build-solutions was passed, but the build callback failed. Aborting."); } |