Unverified Commit 84f4fbf3 authored by Sam Ford's avatar Sam Ford Committed by GitHub
Browse files

Merge pull request #11973 from samford/livecheck/improve-curl-error-message-handling

Strategy: Improve curl error message finding
parents f0dbd8d9 6b66ec9e
......@@ -247,10 +247,8 @@ module Homebrew
return data
end
/^(?<error_msg>curl: \(\d+\) .+)/ =~ stderr
{
messages: [error_msg.presence || "cURL failed without an error"],
}
error_msgs = stderr&.scan(/^curl:.+$/)
{ messages: error_msgs.presence || ["cURL failed without a detectable error"] }
end
# Handles the return value from a `strategy` block in a `livecheck`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment