Revised uncaught exception popup to omit the thread name

This commit is contained in:
Vhati 2018-01-09 16:24:26 -05:00
parent e9cf8bb53f
commit ee4c710808
2 changed files with 1 additions and 3 deletions

View file

@ -354,7 +354,6 @@ public class FTLModManager {
} }
} }
// Create the main window.
ManagerFrame frame = null; ManagerFrame frame = null;
try { try {
frame = new ManagerFrame( appConfig, APP_NAME, APP_VERSION, APP_URL, APP_AUTHOR ); frame = new ManagerFrame( appConfig, APP_NAME, APP_VERSION, APP_URL, APP_AUTHOR );
@ -362,7 +361,7 @@ public class FTLModManager {
frame.setVisible( true ); frame.setVisible( true );
} }
catch ( Exception e ) { catch ( Exception e ) {
log.error( "Exception while creating ManagerFrame", e ); log.error( "Failed to create and init the main window", e );
// If the frame is constructed, but an exception prevents it // If the frame is constructed, but an exception prevents it
// becoming visible, that *must* be caught. The frame registers // becoming visible, that *must* be caught. The frame registers

View file

@ -1080,7 +1080,6 @@ public class ManagerFrame extends JFrame implements ActionListener, ModsScanObse
String message = "" String message = ""
+ "An unexpected error has occurred.\n" + "An unexpected error has occurred.\n"
+ "\n" + "\n"
+ "Thread: "+ threadString +"\n"
+ "Error: "+ errString +"\n" + "Error: "+ errString +"\n"
+ "\n" + "\n"
+ "See the log for details.\n" + "See the log for details.\n"