Skip to content

Commit

Permalink
Update src/libexpr/eval.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Théophane Hufschmitt <[email protected]>
  • Loading branch information
9999years and thufschmitt authored Feb 8, 2024
1 parent 3bee459 commit 31ca039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libexpr/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,8 @@ void EvalState::runDebugRepl(const Error * error, const Env & env, const Expr &
auto exitStatus = (debugRepl)(ref<EvalState>(shared_from_this()), *vm);
switch (exitStatus) {
case ReplExitStatus::QuitAll:
if (error)
throw *error;
throw Exit(0);
case ReplExitStatus::Continue:
break;
Expand Down

0 comments on commit 31ca039

Please sign in to comment.