about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-06-20T10·11+0200
committerEelco Dolstra <edolstra@gmail.com>2017-06-20T10·13+0200
commitc7346a275c4cdcb59b3961241ddc52b79452d716 (patch)
tree088827d50b7373ec5bd4ce1cd8403c07d01d2777 /src
parent04ed11a978bf70e04042df95f8b125c2977e070d (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')
-rw-r--r--src/libexpr/eval-inline.hh2
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;