1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

set exit code EXIT_FAILURE when --build-solutions fails

This commit is contained in:
dogboydog
2022-11-29 23:25:28 -05:00
parent 33b80bd933
commit 6903922ace

View File

@@ -2434,9 +2434,11 @@ bool Main::iteration() {
auto_build_solutions = false; auto_build_solutions = false;
// Only relevant when running the editor. // Only relevant when running the editor.
if (!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."); 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()) { 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."); ERR_FAIL_V_MSG(true, "Command line option --build-solutions was passed, but the build callback failed. Aborting.");
} }
} }