From 7d4eb9364e2bb0f180c5d633664a3b44c6876cd5 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 6 Jun 2016 16:09:50 -0700 Subject: [PATCH] Exit if error code is not zero --- templates/haxe/ApplicationMain.hx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 7e16b8428..422d4a1e8 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -112,7 +112,11 @@ class ApplicationMain { var result = app.exec (); #if (sys && !nodejs && !emscripten) - Sys.exit (result); + if (result != 0) { + + Sys.exit (result); + + } #end #else