From a921f752b8f0c0047bf4b05985cbf3738cab5a27 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 20 Aug 2008 08:41:53 +0000 Subject: [PATCH] Saner tracing of booleans svn path=/nixpkgs/trunk/; revision=12667 --- pkgs/lib/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index 0a4b8e9e989..ecbe18dfa7e 100644 --- a/pkgs/lib/default.nix +++ b/pkgs/lib/default.nix @@ -469,7 +469,8 @@ rec { else if (__isFunction x) then "x is a function" else if (x == []) then "x is an empty list" else if (__isList x) then "x is a list, first item is : ${whatis (__head x)}" - else if (x == true || x == false) then builtins.toString x + else if (x == true) then "x is boolean true" + else if (x == false) then "x is boolean false" else if (x == null) then "x is null" else "x is probably a string starting, starting characters: ${__substring 0 50 x}..";