Skip to content
Snippets Groups Projects
Unverified Commit 43bb5d28 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #4247 from MikeMcQuaid/bump-formula-pr-bad-args

bump-formula-pr: improve bad argument handling.
parents d7dbbf06 33cf882e
No related branches found
No related tags found
No related merge requests found
......@@ -339,6 +339,9 @@ module Homebrew
unless Homebrew.args.quiet?
ohai "replace #{old.inspect} with #{new.inspect}"
end
unless old
raise "No old value for new value #{new}! Did you pass the wrong arguments?"
end
contents.gsub!(old, new)
end
unless contents.errors.empty?
......@@ -352,6 +355,9 @@ module Homebrew
unless Homebrew.args.quiet?
ohai "replace #{old.inspect} with #{new.inspect}"
end
unless old
raise "No old value for new value #{new}! Did you pass the wrong arguments?"
end
s.gsub!(old, new)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment