From 4ab0a18c8fb133bc8e6a5646ecf69bcf53b71dbe Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 8 Apr 2018 16:48:50 -0700 Subject: [PATCH] patch: improve nil strip message. As reported https://github.com/Homebrew/brew/pull/4037#issuecomment-379591755. --- Library/Homebrew/patch.rb | 2 ++ 1 file changed, 2 insertions(+) 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