summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Leutgeb <lorenz@leutgeb.xyz>2024-06-06 01:09:13 +0200
committerRobert Hensing <robert@roberthensing.nl>2024-06-06 01:15:38 +0200
commit4584ea07677102f3d93088fb7b842ef6a91ab433 (patch)
treefb1f7a3d03cf4ea27bcdf793d9286f637eb3ac8a
parentlib.warn: Use or behave like builtins.warn (diff)
downloadnixpkgs-4584ea07677102f3d93088fb7b842ef6a91ab433.tar.gz
lib.warn: Say _evaluation_ warning, like builtins.warn
-rw-r--r--lib/trivial.nix4
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 "warning: ${msg}" (abort "NIX_ABORT_ON_WARN=true; warnings are treated as unrecoverable errors.")
- else builtins.trace "warning: ${msg}" v
+ then builtins.trace "evaluation warning: ${msg}" (abort "NIX_ABORT_ON_WARN=true; warnings are treated as unrecoverable errors.")
+ else builtins.trace "evaluation warning: ${msg}" v
);
/**