diff options
| author | Lorenz Leutgeb <lorenz@leutgeb.xyz> | 2024-06-06 01:09:13 +0200 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2024-06-06 01:15:38 +0200 |
| commit | 4584ea07677102f3d93088fb7b842ef6a91ab433 (patch) | |
| tree | fb1f7a3d03cf4ea27bcdf793d9286f637eb3ac8a | |
| parent | lib.warn: Use or behave like builtins.warn (diff) | |
| download | nixpkgs-4584ea07677102f3d93088fb7b842ef6a91ab433.tar.gz | |
lib.warn: Say _evaluation_ warning, like builtins.warn
| -rw-r--r-- | lib/trivial.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix index b5c5d325eaad..334d1029a103 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -710,8 +710,8 @@ in { # `builtins.warn` requires a string message, so we enforce that in our implementation, so that callers aren't accidentally incompatible with newer Nix versions. assert isString msg; if mustAbort - then builtins.trace "[1;31mwarning: ${msg}[0m" (abort "NIX_ABORT_ON_WARN=true; warnings are treated as unrecoverable errors.") - else builtins.trace "[1;31mwarning: ${msg}[0m" v + then builtins.trace "[1;31mevaluation warning: ${msg}[0m" (abort "NIX_ABORT_ON_WARN=true; warnings are treated as unrecoverable errors.") + else builtins.trace "[1;31mevaluation warning: ${msg}[0m" v ); /** |
