summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2024-07-16 15:55:05 +0200
committerRobert Hensing <robert@roberthensing.nl>2024-07-16 15:56:01 +0200
commit7d4a9a5772966bf10f31c6dc51ff7cfa1c8ce02f (patch)
treebec0efea17358e61af455337c7b970bdc2884810
parentlib.warn: Fix color (diff)
downloadnixpkgs-7d4a9a5772966bf10f31c6dc51ff7cfa1c8ce02f.tar.gz
lib.warn: Remove color from the message itself
This aligns with Nix and makes it more readable. The prefix still stands out.
-rw-r--r--lib/trivial.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix
index 9db1bfa66682..4e9ec8cfbab4 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 "evaluation warning: ${msg}" (abort "NIX_ABORT_ON_WARN=true; warnings are treated as unrecoverable errors.")
- else builtins.trace "evaluation 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
);
/**