Fix ANSI escape in warning messages
Seems to have been broken by accident in 7d1ddae58e465a1708967c9fee651c33819969c6.
commit88412c865d930a22c193bb83255336f62e65a9a1
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateMon 15 Dec 2014, 12:08 (12 years ago)
parent32e41c2
nixos/modules/system/activation/top-level.nix+1−1
@@ -88,7 +88,7 @@ let
8888
8989 failed = map (x: x.message) (filter (x: !x.assertion) config.assertions);
9090
91− showWarnings = res: fold (w: x: builtins.trace "^[[1;31mwarning: ${w}^[[0m" x) res config.warnings;
91+ showWarnings = res: fold (w: x: builtins.trace "[1;31mwarning: ${w}[0m" x) res config.warnings;
9292
9393 # Putting it all together. This builds a store path containing
9494 # symlinks to the various parts of the built configuration (the