mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
showType(fun)
This commit is contained in:
parent
644567cf7e
commit
99304334ca
1 changed files with 1 additions and 10 deletions
|
@ -1378,17 +1378,8 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & po
|
||||||
throwTypeError(
|
throwTypeError(
|
||||||
pos,
|
pos,
|
||||||
"attempt to call something which is not a function but %1%",
|
"attempt to call something which is not a function but %1%",
|
||||||
fun,
|
showType(fun),
|
||||||
map2("fun", &fun, "arg", &arg));
|
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);
|
ExprLambda & lambda(*fun.lambda.fun);
|
||||||
|
|
Loading…
Reference in a new issue