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:
parent
d8b067b549
commit
91b3573770
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue