Skip to content

Commit

Permalink
Restore thunks on any exception
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
edolstra committed Jun 20, 2017
1 parent 04ed11a commit c7346a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/eval-inline.hh
Expand Up @@ -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;
Expand Down

0 comments on commit c7346a2

Please sign in to comment.