C API: builtin -> custom function

Not all primops will be in `builtins`.
This commit is contained in:
Robert Hensing 2024-05-23 18:53:33 +02:00
parent 8ef6efc184
commit 4bc4fb40ea

View file

@ -91,7 +91,7 @@ static void nix_c_primop_wrapper(
if (ctx.last_err_code != NIX_OK) {
/* TODO: Throw different errors depending on the error code */
state.error<nix::EvalError>("Error from builtin function: %s", *ctx.last_err).atPos(pos).debugThrow();
state.error<nix::EvalError>("Error from custom function: %s", *ctx.last_err).atPos(pos).debugThrow();
}
if (!vTmp.isValid()) {