aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-08-12 17:47:33 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-08-12 17:47:33 -0300
commitb563ebd276fbcb6a49f2d60380d8ec51b40b54a2 (patch)
treeda900b500d7d71a8d6a77f88537e7078758d1e6a
parent2b93947fe732b10f542c120aff69f1fa373a46dd (diff)
downloadluarocks-2.2.0.tar.gz
luarocks-2.2.0.tar.bz2
luarocks-2.2.0.zip
Make error message more specific. Closes #213.v2.2.0
-rw-r--r--src/luarocks/remove.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/remove.lua b/src/luarocks/remove.lua
index 595df8f4..e1cd44f0 100644
--- a/src/luarocks/remove.lua
+++ b/src/luarocks/remove.lua
@@ -159,7 +159,7 @@ function remove.run(...)
159 local results = {} 159 local results = {}
160 search.manifest_search(results, cfg.rocks_dir, search.make_query(name, version)) 160 search.manifest_search(results, cfg.rocks_dir, search.make_query(name, version))
161 if not results[name] then 161 if not results[name] then
162 return nil, "Could not find rock '"..name..(version and " "..version or "").."' in local tree." 162 return nil, "Could not find rock '"..name..(version and " "..version or "").."' in "..cfg.root_dir
163 end 163 end
164 164
165 return remove.remove_search_results(results, name, deps_mode, flags["force"]) 165 return remove.remove_search_results(results, name, deps_mode, flags["force"])