mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Always print addErrorContext traces
This commit is contained in:
parent
38ba96d7b0
commit
bebacc475c
7 changed files with 90 additions and 17 deletions
|
@ -826,7 +826,7 @@ static void prim_addErrorContext(EvalState & state, const PosIdx pos, Value * *
|
|||
auto message = state.coerceToString(pos, *args[0], context,
|
||||
"while evaluating the error message passed to builtins.addErrorContext",
|
||||
false, false).toOwned();
|
||||
e.addTrace(nullptr, HintFmt(message));
|
||||
e.addTrace(nullptr, HintFmt(message), TraceKind::Custom);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue