From bee75662424508d617c8b80ab9bbda03e502354c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 7 Apr 2013 00:08:15 -0300 Subject: Improve diagnostics on error copying 'lua' directory. Actually it would be better to check if this is really working as intended. --- src/luarocks/build/builtin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua index 485ff370..f65774fd 100644 --- a/src/luarocks/build/builtin.lua +++ b/src/luarocks/build/builtin.lua @@ -240,8 +240,8 @@ function run(rockspec) end if ok then if fs.is_dir("lua") then - ok = fs.copy_contents("lua", luadir) - if not ok then err = "Failed copying contents of 'lua' directory." end + ok, err = fs.copy_contents("lua", luadir) + if not ok then err = "Failed copying contents of 'lua' directory: "..err end end end if ok then -- cgit v1.2.3-55-g6feb