Fix reporting exit code when command line export fails

Fixes #83042.
This commit is contained in:
Rémi Verschelde 2024-03-07 01:00:46 +01:00
parent bfdac951e3
commit 51bfda9446
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 1 deletions

View File

@ -995,7 +995,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);