diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-06-20T10·11+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-06-20T10·13+0200 |
commit | c7346a275c4cdcb59b3961241ddc52b79452d716 (patch) | |
tree | 088827d50b7373ec5bd4ce1cd8403c07d01d2777 /src/libexpr/eval-inline.hh | |
parent | 04ed11a978bf70e04042df95f8b125c2977e070d (diff) |
Restore thunks on any exception
There's no reason to restrict this to Error exceptions. This shouldn't matter to #1407 since the repl doesn't catch non-Error exceptions anyway, but you never know...
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r-- | src/libexpr/eval-inline.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh index 0748fbd3f3e1..8cc50e561354 100644 --- a/src/libexpr/eval-inline.hh +++ b/src/libexpr/eval-inline.hh @@ -33,7 +33,7 @@ void EvalState::forceValue(Value & v, const Pos & pos) v.type = tBlackhole; //checkInterrupt(); expr->eval(*this, *env, v); - } catch (Error & e) { + } catch (...) { v.type = tThunk; v.thunk.env = env; v.thunk.expr = expr; |