Add class name to method_added error
This commit is contained in:
parent
2e5d050931
commit
fb83fc7bc4
@ -677,7 +677,7 @@ class Formula
|
||||
def self.method_added method
|
||||
case method
|
||||
when :brew
|
||||
raise "You cannot override Formula#brew"
|
||||
raise "You cannot override Formula#brew in class #{name}"
|
||||
when :test
|
||||
@test_defined = true
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user