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

[GR-6293] Use correct exit code in RCommand.readEvalPrint upon call to "quit".

PullRequest: fastr/1171
parents 413fd598 e96488f6
No related branches found
No related tags found
No related merge requests found
......@@ -296,7 +296,8 @@ public class RCommand {
context.eval(QUIT_EOF);
} catch (PolyglotException e2) {
if (e2.isExit()) {
return e2.getExitStatus();
// don't use the exit code from the PolyglotException
return lastStatus;
}
throw fatal(e, "error while calling quit");
}
......
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