mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Added null recognition to whatis
svn path=/nixpkgs/trunk/; revision=12663
This commit is contained in:
parent
9d181d621f
commit
69e4f17372
@ -465,6 +465,7 @@ rec {
|
||||
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 == 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