Skip to content
Snippets Groups Projects
Unverified Commit 775c2fd2 authored by Markus Reiter's avatar Markus Reiter Committed by Sam Ford
Browse files

Clarify error message.

parent b9741dd1
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,8 @@ module Homebrew
def self.page_matches(url, regex, &block)
page = Strategy.page_contents(url)
odebug "Page Contents", page
if block
data = { page: page }
case (value = block.call(data))
......@@ -57,7 +59,7 @@ module Homebrew
when Array
return value
else
raise TypeError, "Return value of `strategy :page_match` block must be a string or array."
raise TypeError, "Return value of `strategy :page_match` block must be a string or array of strings."
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment