Saner tracing of booleans
svn path=/nixpkgs/trunk/; revision=12667
This commit is contained in:
parent
ff0d85fdc8
commit
a921f752b8
@ -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}..";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user