mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #68002 from dogboydog/csharp_build_exit_code
Exit editor with non-zero return code if --build-solutions fails
This commit is contained in:
commit
abad6ea55c
@ -3175,10 +3175,12 @@ 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,
|
ERR_FAIL_V_MSG(true,
|
||||||
"Command line option --build-solutions was passed, but no project is being edited. Aborting.");
|
"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,
|
ERR_FAIL_V_MSG(true,
|
||||||
"Command line option --build-solutions was passed, but the build callback failed. Aborting.");
|
"Command line option --build-solutions was passed, but the build callback failed. Aborting.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user