diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-08-20 08:41:53 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-08-20 08:41:53 +0000 |
commit | a921f752b8f0c0047bf4b05985cbf3738cab5a27 (patch) | |
tree | 4b9434d7247b63e4a90aad1adf2a2abd46424b53 /pkgs/lib | |
parent | ff0d85fdc843d3bfadadf71fda40e273b69162c3 (diff) |
Saner tracing of booleans
svn path=/nixpkgs/trunk/; revision=12667
Diffstat (limited to 'pkgs/lib')
-rw-r--r-- | pkgs/lib/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index 0a4b8e9e989e0..ecbe18dfa7e42 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}.."; |