From 91b3573770d4628b1219577a381f79b8cb3fafe9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 6 Jun 2025 17:09:01 +0200 Subject: [PATCH] Rethrow non-EOF errors --- src/libcmd/repl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 75a0baebc..de8558e5f 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -839,6 +839,8 @@ void NixRepl::evalString(std::string s, Value & v) // For parse errors on incomplete input, we continue waiting for the next line of // input without clearing the input so far. throw IncompleteReplExpr(e.msg()); + else + throw; } e->eval(*state, *env, v); state->forceValue(v, v.determinePos(noPos));