From 6cc232c20597600c956c7d00d51682f8a95641dd Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Wed, 11 Sep 2024 10:45:28 -0400 Subject: [PATCH] Include formula name in no-URL error --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0852a1748b8f5..c38e97d185da9 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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!