From 7d4a9a5772966bf10f31c6dc51ff7cfa1c8ce02f Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 16 Jul 2024 15:55:05 +0200 Subject: [PATCH] lib.warn: Remove color from the message itself This aligns with Nix and makes it more readable. The prefix still stands out. --- lib/trivial.nix | 4 ++-- 1 file 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 ); /**