Explorar o código

Fix reporting exit code when command line export fails

Fixes #83042.
Rémi Verschelde hai 1 ano
pai
achega
51bfda9446
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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);