mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-07 16:04:27 +01:00
Exit immediately if an uncaught error is thrown on the main thread
This commit is contained in:
@@ -56,6 +56,9 @@ public class Main {
|
||||
e.getCause().printStackTrace();
|
||||
}
|
||||
status = getStatusForError(e);
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
status = 2;
|
||||
}
|
||||
System.exit(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user