From 0679559812674fdd9b0a9c17852ebd03f7ff2fc4 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 13 Apr 2015 20:22:57 -0300 Subject: Decided to step back in turn this into a warning. `luarocks list` on an empty ~/.luarocks is a valid use case. --- src/luarocks/list.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/list.lua b/src/luarocks/list.lua index 22dbb721..518b83ce 100644 --- a/src/luarocks/list.lua +++ b/src/luarocks/list.lua @@ -93,9 +93,9 @@ function list.run(...) local results = {} for _, tree in ipairs(trees) do - local ok, err, errcode = search.manifest_search(results, path.rocks_dir(tree), query) + local ok, err = search.manifest_search(results, path.rocks_dir(tree), query) if not ok then - return nil, err + util.warning(err) end end util.title("Installed rocks:", flags["porcelain"]) -- cgit v1.2.3-55-g6feb