Reducing code duplication

This commit is contained in:
Joakim Erdfelt 2013-08-17 14:30:13 -07:00 committed by Greg Wilkins
parent fe4b922127
commit 3443593136
1 changed files with 5 additions and 5 deletions

View File

@ -1216,7 +1216,10 @@ public class Main
static void usageExit(Throwable t, int exit)
{
t.printStackTrace(System.err);
if (t != null)
{
t.printStackTrace(System.err);
}
System.err.println();
System.err.println("Usage: java -jar start.jar [options] [properties] [configs]");
System.err.println(" java -jar start.jar --help # for more information");
@ -1225,10 +1228,7 @@ public class Main
static void usageExit(int exit)
{
System.err.println();
System.err.println("Usage: java -jar start.jar [options] [properties] [configs]");
System.err.println(" java -jar start.jar --help # for more information");
System.exit(exit);
usageExit(null, exit);
}
/**