mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +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
|
// For parse errors on incomplete input, we continue waiting for the next line of
|
||||||
// input without clearing the input so far.
|
// input without clearing the input so far.
|
||||||
throw IncompleteReplExpr(e.msg());
|
throw IncompleteReplExpr(e.msg());
|
||||||
|
else
|
||||||
|
throw;
|
||||||
}
|
}
|
||||||
e->eval(*state, *env, v);
|
e->eval(*state, *env, v);
|
||||||
state->forceValue(v, v.determinePos(noPos));
|
state->forceValue(v, v.determinePos(noPos));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue