summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-21 11:31:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-21 11:31:58 +0100
commitabad6ea55cc90e6c0a6a92d8a52810d71a810fc9 (patch)
tree3d41647daa623981d451b0caaed90432d792b035 /main
parentcbcb77096bc8b4b455bbcc9bf227996dbc367ba3 (diff)
parent16b35b59d15788093dba043aaad3431daefdaa76 (diff)
Merge pull request #68002 from dogboydog/csharp_build_exit_code
Exit editor with non-zero return code if --build-solutions fails
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index b9cb755cbf..69c5af25ca 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -3175,10 +3175,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.");
}