diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/unpack.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/unpack.lua b/src/luarocks/unpack.lua index 6ea7353d..4920d381 100644 --- a/src/luarocks/unpack.lua +++ b/src/luarocks/unpack.lua | |||
@@ -27,9 +27,9 @@ local function unpack_rockspec(rockspec_file, dir_name) | |||
27 | assert(type(rockspec_file) == "string") | 27 | assert(type(rockspec_file) == "string") |
28 | assert(type(dir_name) == "string") | 28 | assert(type(dir_name) == "string") |
29 | 29 | ||
30 | local rockspec = fetch.load_rockspec(rockspec_file) | 30 | local rockspec, err = fetch.load_rockspec(rockspec_file) |
31 | if not rockspec then | 31 | if not rockspec then |
32 | return nil, "Failed loading rockspec "..rockspec_file | 32 | return nil, "Failed loading rockspec "..rockspec_file..": "..err |
33 | end | 33 | end |
34 | fs.change_dir(dir_name) | 34 | fs.change_dir(dir_name) |
35 | local ok, sources_dir = fetch.fetch_sources(rockspec, true, ".") | 35 | local ok, sources_dir = fetch.fetch_sources(rockspec, true, ".") |