Merge pull request #11973 from samford/livecheck/improve-curl-error-message-handling
Strategy: Improve curl error message finding
This commit is contained in:
commit
84f4fbf3cf
@ -247,10 +247,8 @@ module Homebrew
|
|||||||
return data
|
return data
|
||||||
end
|
end
|
||||||
|
|
||||||
/^(?<error_msg>curl: \(\d+\) .+)/ =~ stderr
|
error_msgs = stderr&.scan(/^curl:.+$/)
|
||||||
{
|
{ messages: error_msgs.presence || ["cURL failed without a detectable error"] }
|
||||||
messages: [error_msg.presence || "cURL failed without an error"],
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Handles the return value from a `strategy` block in a `livecheck`
|
# Handles the return value from a `strategy` block in a `livecheck`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user