diff options
-rw-r--r-- | src/luarocks/upload/api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index b56f23e1..6a830abd 100644 --- a/src/luarocks/upload/api.lua +++ b/src/luarocks/upload/api.lua | |||
@@ -138,9 +138,9 @@ function Api:request(url, params, post_params) | |||
138 | if not json_ok then return nil, "A JSON library is required for this command. "..json end | 138 | if not json_ok then return nil, "A JSON library is required for this command. "..json end |
139 | 139 | ||
140 | if cfg.downloader == "wget" then | 140 | if cfg.downloader == "wget" then |
141 | local curl_ok = fs.execute_quiet(vars.CURL, "--version") | 141 | local curl_ok, err = fs.is_tool_available(vars.CURL, "curl") |
142 | if not curl_ok then | 142 | if not curl_ok then |
143 | return nil, "Missing network helper program 'curl'.\nMake sure 'curl' is installed and available from your path." | 143 | return nil, err |
144 | end | 144 | end |
145 | end | 145 | end |
146 | 146 | ||