Skip to content

Commit

Permalink
Merge pull request #18308 from Homebrew/formula-name-in-no-url-error
Browse files Browse the repository at this point in the history
Include formula name in no-URL error
  • Loading branch information
MikeMcQuaid committed Sep 11, 2024
2 parents 9c80687 + 6cc232c commit 3dff0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def add_global_deps_to_spec(spec); end

def determine_active_spec(requested)
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

def validate_attributes!
Expand Down

0 comments on commit 3dff0ac

Please sign in to comment.