mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +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) {
|
||||
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) {
|
||||
state.runDebugRepl(nullptr);
|
||||
|
|
Loading…
Reference in a new issue