Skip to content
Snippets Groups Projects
Commit ebd780e3 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

end REPL when exceptions occur during shutdown

parent 3826aa52
No related branches found
No related tags found
No related merge requests found
......@@ -104,9 +104,13 @@ public class RCommand {
}
public static void main(String[] args) {
System.exit(doMain(prependCommand(args), null, System.in, System.out, System.err));
// never returns
throw fatal("main should never return");
try {
System.exit(doMain(prependCommand(args), null, System.in, System.out, System.err));
// never returns
throw fatal("main should never return");
} catch (Throwable t) {
throw fatal(t, "error during REPL execution");
}
}
static String[] prependCommand(String[] args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment