diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 77021480c..9150be25e 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -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