mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
set exit code EXIT_FAILURE when --build-solutions fails
This commit is contained in:
parent
11e1bac768
commit
16b35b59d1
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user