summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-11-08 00:50:46 -0200
committerHisham Muhammad <hisham@gobolinux.org>2011-11-08 00:50:46 -0200
commit6b5c0a8673585fea993573628387d9f075d5c748 (patch)
tree42c112c0e6e9d686377748a1f802c0deb3108e25
parent9b3ec18536270f5498c082e27cda786bde20d494 (diff)
downloadluarocks-6b5c0a8673585fea993573628387d9f075d5c748.tar.gz
luarocks-6b5c0a8673585fea993573628387d9f075d5c748.tar.bz2
luarocks-6b5c0a8673585fea993573628387d9f075d5c748.zip
add a tostring() here just in case, since Thijs Schreijer mentioned a problem in LR 2.0.2
and there's similar code here
-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