patch: improve nil strip message.

As reported https://github.com/Homebrew/brew/pull/4037#issuecomment-379591755.
This commit is contained in:
Mike McQuaid
2018-04-08 16:48:50 -07:00
parent 99b89e4866
commit 4ab0a18c8f
+2
View File
@@ -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