// unexpected error => dump stack
This commit is contained in:
parent
ab964c1c23
commit
735008eb99
|
@ -64,6 +64,7 @@ import net.filebot.web.CachedResource;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import net.sf.ehcache.CacheManager;
|
import net.sf.ehcache.CacheManager;
|
||||||
|
|
||||||
|
import org.kohsuke.args4j.CmdLineException;
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
@ -209,10 +210,14 @@ public class Main {
|
||||||
Logger.getLogger(Main.class.getName()).log(Level.WARNING, "Failed to show Getting Started help", e);
|
Logger.getLogger(Main.class.getName()).log(Level.WARNING, "Failed to show Getting Started help", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (CmdLineException e) {
|
||||||
// illegal arguments => just print CLI error message and stop
|
// illegal arguments => print CLI error message
|
||||||
System.err.println(e.getMessage());
|
System.err.println(e.getMessage());
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
|
} catch (Throwable e) {
|
||||||
|
// unexpected error => dump stack
|
||||||
|
e.printStackTrace();
|
||||||
|
System.exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue