summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-04-29 02:50:05 +0200
committerest31 <MTest31@outlook.com>2015-05-05 18:19:14 +0200
commit584f4470c8be53fa2c682fdd9caede949fc58cf0 (patch)
tree2b4b4dc7814db24a574533a160c187b769e8ed4b /tools
parent1268e65aa5a804a249c9da5d0e32e4b2c90d1f0c (diff)
Abort when exporting fails
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/project_export.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp
index 63187d2903..374dda852b 100644
--- a/tools/editor/project_export.cpp
+++ b/tools/editor/project_export.cpp
@@ -479,6 +479,11 @@ Error ProjectExportDialog::export_platform(const String& p_platform, const Strin
if (err!=OK) {
error->set_text("Error exporting project!");
error->popup_centered_minsize();
+ ERR_PRINT("Exporting failed!");
+ if (p_quit_after) {
+ OS::get_singleton()->set_exit_code(255);
+ get_tree()->quit();
+ }
return ERR_CANT_CREATE;
} else {
if (p_quit_after) {