From ec1ccfc94011529deee5a03f227154d222287735 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 24 Sep 2012 18:26:47 -0300 Subject: Fix for when version is not explicitly given. --- src/luarocks/show.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua index 68c1a738..dd84e794 100644 --- a/src/luarocks/show.lua +++ b/src/luarocks/show.lua @@ -86,7 +86,7 @@ function run(...) end if not next(results) then -- - return nil,"cannot find package "..name.." "..version.."\nUse 'list' to find installed rocks." + return nil,"cannot find package "..name.." "..(version or "").."\nUse 'list' to find installed rocks." end version = nil -- cgit v1.2.3-55-g6feb