aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-04-13 20:22:57 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-04-13 20:22:57 -0300
commit0679559812674fdd9b0a9c17852ebd03f7ff2fc4 (patch)
treec0df40a9a027fac1ebd4b539abf1aa934c20e3b1 /src
parent40f9173755e9c770a6f773bc2bf00bc13fd8bec0 (diff)
downloadluarocks-0679559812674fdd9b0a9c17852ebd03f7ff2fc4.tar.gz
luarocks-0679559812674fdd9b0a9c17852ebd03f7ff2fc4.tar.bz2
luarocks-0679559812674fdd9b0a9c17852ebd03f7ff2fc4.zip
Decided to step back in turn this into a warning.
`luarocks list` on an empty ~/.luarocks is a valid use case.
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/list.lua4
1 files changed, 2 insertions, 2 deletions
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(...)
93 93
94 local results = {} 94 local results = {}
95 for _, tree in ipairs(trees) do 95 for _, tree in ipairs(trees) do
96 local ok, err, errcode = search.manifest_search(results, path.rocks_dir(tree), query) 96 local ok, err = search.manifest_search(results, path.rocks_dir(tree), query)
97 if not ok then 97 if not ok then
98 return nil, err 98 util.warning(err)
99 end 99 end
100 end 100 end
101 util.title("Installed rocks:", flags["porcelain"]) 101 util.title("Installed rocks:", flags["porcelain"])