mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 04:30:21 +00:00
patch: improve nil strip message.
As reported https://github.com/Homebrew/brew/pull/4037#issuecomment-379591755.
This commit is contained in:
@@ -17,6 +17,8 @@ module Patch
|
||||
else
|
||||
ExternalPatch.new(strip, &block)
|
||||
end
|
||||
when nil
|
||||
raise ArgumentError, "nil value for strip"
|
||||
else
|
||||
raise ArgumentError, "unexpected value #{strip.inspect} for strip"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user