From 31ca0397d6cbb1ac9588a9127306cbb16f0e2d45 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 8 Feb 2024 09:49:27 -0800 Subject: [PATCH] Update src/libexpr/eval.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> --- src/libexpr/eval.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index fda24ac4cd4..976f4a37124 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -835,6 +835,8 @@ void EvalState::runDebugRepl(const Error * error, const Env & env, const Expr & auto exitStatus = (debugRepl)(ref(shared_from_this()), *vm); switch (exitStatus) { case ReplExitStatus::QuitAll: + if (error) + throw *error; throw Exit(0); case ReplExitStatus::Continue: break;