From 2abc4a777c03d69c815cd40430b1d3580511f68a Mon Sep 17 00:00:00 2001 From: cpw Date: Sat, 20 Jun 2015 12:59:45 -0400 Subject: [PATCH] Make sure to set a non-zero exit code in case of exception - so the launcher shows up again.. --- .gitignore | 1 + src/main/java/net/minecraft/launchwrapper/Launch.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index ae9d088..a7e41e1 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ nbproject # generated /repo/ +/bin/ diff --git a/src/main/java/net/minecraft/launchwrapper/Launch.java b/src/main/java/net/minecraft/launchwrapper/Launch.java index 3a970f1..3fe49e7 100644 --- a/src/main/java/net/minecraft/launchwrapper/Launch.java +++ b/src/main/java/net/minecraft/launchwrapper/Launch.java @@ -135,6 +135,7 @@ public class Launch { mainMethod.invoke(null, (Object) argumentList.toArray(new String[argumentList.size()])); } catch (Exception e) { LogWrapper.log(Level.ERROR, e, "Unable to launch"); + System.exit(1); } } }