aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index eff006cdc..c876916af 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -657,6 +657,8 @@ private
case method
when :brew
raise "You cannot override Formula#brew"
+ when :patch
+ raise "You probably meant `def patches`."
when :test
@test_defined = true
end