Browse Source

Merge pull request #89234 from akien-mga/cmdline-export-fix-exit-code

Fix reporting exit code when command line export fails
Rémi Verschelde 1 năm trước cách đây
mục cha
commit
1c8d082a3d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      editor/editor_node.cpp

+ 3 - 1
editor/editor_node.cpp

@@ -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);