mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
C API: fix after rebase
This commit is contained in:
parent
6c231dcf68
commit
2349185c96
3 changed files with 10 additions and 7 deletions
|
@ -72,8 +72,7 @@ static void nix_c_primop_wrapper(
|
|||
f(userdata, &ctx, (EvalState *) &state, (Value **) args, (Value *) &v);
|
||||
/* TODO: In the future, this should throw different errors depending on the error code */
|
||||
if (ctx.last_err_code != NIX_OK)
|
||||
state.debugThrowLastTrace(nix::Error(
|
||||
{.msg = nix::hintfmt("Error from builtin function: %s", *ctx.last_err), .errPos = state.positions[pos]}));
|
||||
state.error<nix::EvalError>("Error from builtin function: %s", *ctx.last_err).atPos(pos).debugThrow();
|
||||
}
|
||||
|
||||
PrimOp * nix_alloc_primop(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue