aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fetch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua
index ff77882e..2ea2c906 100644
--- a/src/luarocks/fetch.lua
+++ b/src/luarocks/fetch.lua
@@ -32,7 +32,7 @@ function fetch_url(url, filename)
32 elseif protocol == "http" or protocol == "ftp" or protocol == "https" then 32 elseif protocol == "http" or protocol == "ftp" or protocol == "https" then
33 local ok, err = fs.download(url, filename) 33 local ok, err = fs.download(url, filename)
34 if not ok then 34 if not ok then
35 return nil, "Failed downloading "..url.." - "..err, "network" 35 return nil, "Failed downloading "..url..(err and " - "..err or ""), "network"
36 end 36 end
37 return dir.path(fs.current_dir(), filename or dir.base_name(url)) 37 return dir.path(fs.current_dir(), filename or dir.base_name(url))
38 else 38 else