From 1281517746fc39a13c1ecba848f6f84656b0ebbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 7 Mar 2024 01:00:46 +0100 Subject: [PATCH] Fix reporting exit code when command line export fails Fixes #83042. (cherry picked from commit 51bfda9446b362441354d24ab5ba04a066f6696c) --- editor/editor_node.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 71272681886..89cda8e32f7 100644 --- a/editor/editor_node.cpp +++ b/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);