Skip to content

Commit

Permalink
Fix reporting exit code when command line export fails
Browse files Browse the repository at this point in the history
Fixes #83042.
  • Loading branch information
akien-mga committed Mar 7, 2024
1 parent bfdac95 commit 51bfda9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 51bfda9

Please sign in to comment.