aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-05-14 18:09:30 -0600
committerBen Burdette <bburdette@gmail.com>2021-05-14 18:09:30 -0600
commit99304334caa833b32712ad02e04f1a0e9c8322fe (patch)
tree85b24cbd7035107a334375d1eb89469473387308
parent644567cf7ea810f86bd8e0328567b39c4757bc14 (diff)
showType(fun)
-rw-r--r--src/libexpr/eval.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 897444360..9bb43f522 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -1378,17 +1378,8 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & po
throwTypeError(
pos,
"attempt to call something which is not a function but %1%",
- fun,
+ showType(fun),
map2("fun", &fun, "arg", &arg));
-
- // auto error = TypeError({
- // // .hint = hintfmt("attempt to call something which is not a function but %1%", showType(fun)),
- // .msg = hintfmt("attempt to call something which is not a function but %1%", fun),
- // .errPos = pos
- // });
- // if (debuggerHook)
- // debuggerHook(error, {{"fun", &fun}, {"arg", &arg}});
- // throw error;
}
ExprLambda & lambda(*fun.lambda.fun);