1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Rethrow non-EOF errors

This commit is contained in:
Eelco Dolstra 2025-06-06 17:09:01 +02:00
parent d8b067b549
commit 91b3573770

View file

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