mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Exit immediately if an uncaught error is thrown on the main thread
This commit is contained in:
parent
62d8873a92
commit
f48593f265
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ public class Main {
|
|||
e.getCause().printStackTrace();
|
||||
}
|
||||
status = getStatusForError(e);
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
status = 2;
|
||||
}
|
||||
System.exit(status);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue