mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
builtins.warn: Do not throw EvalError
This commit is contained in:
parent
c07500e14d
commit
831d96d8d7
1 changed files with 2 additions and 1 deletions
|
@ -1056,7 +1056,8 @@ static void prim_warn(EvalState & state, const PosIdx pos, Value * * args, Value
|
||||||
}
|
}
|
||||||
|
|
||||||
if (evalSettings.builtinsAbortOnWarn) {
|
if (evalSettings.builtinsAbortOnWarn) {
|
||||||
state.error<Abort>("aborting to reveal stack trace of warning, as abort-on-warn is set").debugThrow();
|
// Not an EvalError or subclass, which would cause the error to be stored in the eval cache.
|
||||||
|
state.error<Error>("aborting to reveal stack trace of warning, as abort-on-warn is set").debugThrow();
|
||||||
}
|
}
|
||||||
if (evalSettings.builtinsTraceDebugger || evalSettings.builtinsDebuggerOnWarn) {
|
if (evalSettings.builtinsTraceDebugger || evalSettings.builtinsDebuggerOnWarn) {
|
||||||
state.runDebugRepl(nullptr);
|
state.runDebugRepl(nullptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue