aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/lua.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index a286ca50..ce0877db 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
@@ -542,7 +542,7 @@ function download(url, filename)
542 err = "Unsupported protocol" 542 err = "Unsupported protocol"
543 end 543 end
544 if not content then 544 if not content then
545 return false, err 545 return false, tostring(err)
546 end 546 end
547 local file = io.open(filename, "wb") 547 local file = io.open(filename, "wb")
548 if not file then return false end 548 if not file then return false end