Skip to content

Commit

Permalink
Merge pull request #89234 from akien-mga/cmdline-export-fix-exit-code
Browse files Browse the repository at this point in the history
Fix reporting exit code when command line export fails
  • Loading branch information
akien-mga committed Mar 7, 2024
2 parents 26a6f81 + 51bfda9 commit 1c8d082
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 1c8d082

Please sign in to comment.