diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/upload/api.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index c5883355..97c3598e 100644 --- a/src/luarocks/upload/api.lua +++ b/src/luarocks/upload/api.lua | |||
@@ -156,6 +156,9 @@ function Api:request(url, params, post_params) | |||
156 | curl_cmd = curl_cmd .. "--connect-timeout "..tonumber(cfg.connection_timeout).." " | 156 | curl_cmd = curl_cmd .. "--connect-timeout "..tonumber(cfg.connection_timeout).." " |
157 | end | 157 | end |
158 | ok = fs.execute_string(curl_cmd..fs.Q(url).." -o "..fs.Q(tmpfile)) | 158 | ok = fs.execute_string(curl_cmd..fs.Q(url).." -o "..fs.Q(tmpfile)) |
159 | if not ok then | ||
160 | return nil, "API failure: " .. tostring(url) | ||
161 | end | ||
159 | else | 162 | else |
160 | local ok, err = fs.download(url, tmpfile) | 163 | local ok, err = fs.download(url, tmpfile) |
161 | if not ok then | 164 | if not ok then |