Fix reporting exit code when command line export fails
Fixes #83042.
(cherry picked from commit 51bfda9446
)
This commit is contained in:
parent
fc78f766d1
commit
7eb4e71147
@ -993,7 +993,9 @@ void EditorNode::_fs_changed() {
|
||||
if (err != OK) {
|
||||
ERR_PRINT(export_error);
|
||||
_exit_editor(EXIT_FAILURE);
|
||||
} else if (!export_error.is_empty()) {
|
||||
return;
|
||||
}
|
||||
if (!export_error.is_empty()) {
|
||||
WARN_PRINT(export_error);
|
||||
}
|
||||
_exit_editor(EXIT_SUCCESS);
|
||||
|
Loading…
Reference in New Issue
Block a user