summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-25 21:16:34 +0100
committerGitHub <noreply@github.com>2021-02-25 21:16:34 +0100
commit6ef0538f182c13e1691eb0e03211c949e11beed4 (patch)
tree496c301bfe51083be230f75d110ff4e6de07c2f6 /main
parent494e1cb1487c90425e3f5ae2cdf9e4046c3f550c (diff)
parent60d2c1fd47a0c24a127ea00f09724537f5527dbb (diff)
Merge pull request #38929 from touilleMan/exit-status-on-godot-error
Fix Godot returned status code on unexpected error
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 71dd3cf1ad..e9b06f6b07 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1992,7 +1992,7 @@ bool Main::start() {
if (check_only) {
if (!script_res->is_valid()) {
- OS::get_singleton()->set_exit_code(1);
+ OS::get_singleton()->set_exit_code(EXIT_FAILURE);
}
return false;
}