diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-05 21:29:48 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-07 18:02:32 +0200 |
commit | 176c666f36afee12f5cbd1f9615cf21d781fdbde (patch) | |
tree | 82512135ab841b5751e36b5191de0366dfa8492d /src/libexpr/eval.cc | |
parent | c945f015de2149233c1e4fa1628f05567f3657ba (diff) |
Don't show calls to primops in stack traces
Since they don't have location information, they just give you crap
like:
while evaluating the builtin function `getAttr':
while evaluating the builtin function `derivationStrict':
...
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 050991a1b..f128b6ad3 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -728,12 +728,7 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v) /* And call the primop. */ nrPrimOpCalls++; if (countCalls) primOpCalls[primOp->primOp->name]++; - try { - primOp->primOp->fun(*this, vArgs, v); - } catch (Error & e) { - addErrorPrefix(e, "while evaluating the builtin function `%1%':\n", primOp->primOp->name); - throw; - } + primOp->primOp->fun(*this, vArgs, v); } else { v.type = tPrimOpApp; v.primOpApp.left = allocValue(); |