From 69e4f1737276b9b66c6b921485f7a9b3cefe0a0f Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 20 Aug 2008 04:34:28 +0000 Subject: [PATCH] Added null recognition to whatis svn path=/nixpkgs/trunk/; revision=12663 --- pkgs/lib/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index 999efd38ecd..a23b7d947ef 100644 --- a/pkgs/lib/default.nix +++ b/pkgs/lib/default.nix @@ -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}..";