From 6b5c0a8673585fea993573628387d9f075d5c748 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 8 Nov 2011 00:50:46 -0200 Subject: add a tostring() here just in case, since Thijs Schreijer mentioned a problem in LR 2.0.2 and there's similar code here --- src/luarocks/fs/lua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) err = "Unsupported protocol" end if not content then - return false, err + return false, tostring(err) end local file = io.open(filename, "wb") if not file then return false end -- cgit v1.2.3-55-g6feb