From 6903922aceaf5fe2b09d7dfafe47caea6e15bd9b Mon Sep 17 00:00:00 2001 From: dogboydog Date: Tue, 29 Nov 2022 23:25:28 -0500 Subject: [PATCH] set exit code EXIT_FAILURE when --build-solutions fails --- main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index f241f7fe15d..f14cbd67adb 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2434,9 +2434,11 @@ 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."); } }