Kaynağa Gözat

Fix reporting exit code when command line export fails

Fixes #83042.

(cherry picked from commit 51bfda9446b362441354d24ab5ba04a066f6696c)
Rémi Verschelde 1 yıl önce
ebeveyn
işleme
1281517746
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      editor/editor_node.cpp

+ 3 - 1
editor/editor_node.cpp

@@ -1003,7 +1003,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);