Explorar el Código

Fix reporting exit code when command line export fails

Fixes #83042.
Rémi Verschelde hace 1 año
padre
commit
51bfda9446
Se han modificado 1 ficheros con 3 adiciones y 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);