mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +02:00
C API: builtin -> custom function
Not all primops will be in `builtins`.
This commit is contained in:
parent
8ef6efc184
commit
4bc4fb40ea
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ static void nix_c_primop_wrapper(
|
||||||
|
|
||||||
if (ctx.last_err_code != NIX_OK) {
|
if (ctx.last_err_code != NIX_OK) {
|
||||||
/* TODO: Throw different errors depending on the error code */
|
/* 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()) {
|
if (!vTmp.isValid()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue