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 godotengine#83042.

(cherry picked from commit 51bfda9)
  • Loading branch information
akien-mga committed Mar 11, 2024
1 parent fc78f76 commit 7eb4e71
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 @@ -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);
Expand Down

0 comments on commit 7eb4e71

Please sign in to comment.