Merge pull request #18308 from Homebrew/formula-name-in-no-url-error

Include formula name in no-URL error
This commit is contained in:
Mike McQuaid 2024-09-11 17:12:33 +01:00 committed by GitHub
commit 3dff0ac648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,7 +316,7 @@ class Formula
def determine_active_spec(requested) def determine_active_spec(requested)
spec = send(requested) || stable || head spec = send(requested) || stable || head
spec || raise(FormulaSpecificationError, "formulae require at least a URL") spec || raise(FormulaSpecificationError, "#{full_name}: formula requires at least a URL")
end end
def validate_attributes! def validate_attributes!