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