diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-07 00:08:15 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-07 00:08:15 -0300 |
commit | bee75662424508d617c8b80ab9bbda03e502354c (patch) | |
tree | 5b55686389654c8c410e85c8c09425ce7e139170 /src | |
parent | 20639f221c605cc1788262af7e8a489adad2ef64 (diff) | |
download | luarocks-bee75662424508d617c8b80ab9bbda03e502354c.tar.gz luarocks-bee75662424508d617c8b80ab9bbda03e502354c.tar.bz2 luarocks-bee75662424508d617c8b80ab9bbda03e502354c.zip |
Improve diagnostics on error copying 'lua' directory.
Actually it would be better to check if this is really working as intended.
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/build/builtin.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
240 | end | 240 | end |
241 | if ok then | 241 | if ok then |
242 | if fs.is_dir("lua") then | 242 | if fs.is_dir("lua") then |
243 | ok = fs.copy_contents("lua", luadir) | 243 | ok, err = fs.copy_contents("lua", luadir) |
244 | if not ok then err = "Failed copying contents of 'lua' directory." end | 244 | if not ok then err = "Failed copying contents of 'lua' directory: "..err end |
245 | end | 245 | end |
246 | end | 246 | end |
247 | if ok then | 247 | if ok then |