Saner tracing of booleans

svn path=/nixpkgs/trunk/; revision=12667
This commit is contained in:
Michael Raskin 2008-08-20 08:41:53 +00:00
parent ff0d85fdc8
commit a921f752b8

View file

@ -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}..";