Exit immediately if an uncaught error is thrown on the main thread
This commit is contained in:
parent
62d8873a92
commit
f48593f265
@ -56,6 +56,9 @@ public class Main {
|
||||
e.getCause().printStackTrace();
|
||||
}
|
||||
status = getStatusForError(e);
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
status = 2;
|
||||
}
|
||||
System.exit(status);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user