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));