GUI: added new error dialog for more use cases

This commit is contained in:
Oleg Agafonov 2024-10-11 16:38:46 +04:00
parent 4f9c158c40
commit bad782244f
2 changed files with 26 additions and 5 deletions

View file

@ -1578,6 +1578,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
// FIRST GUI CALL (create main window with all prepared frames, dialogs, etc)
try {
instance = new MageFrame();
EDTExceptionHandler.registerMainApp(instance);
} catch (Throwable e) {
LOGGER.fatal("Critical error on start up, app will be closed: " + e.getMessage(), e);
System.exit(1);