aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorMike McQuaid2013-11-12 15:42:46 +0000
committerMike McQuaid2013-11-12 15:44:30 +0000
commit5c8396b145ed4022668bc917173b53d4c70ec669 (patch)
tree7208c8621eae4c926acfe848b34d1009101cac86 /Library/Homebrew/utils
parent0bcebe4523fbe4c57246dbbb1d807177b44aafc6 (diff)
downloadhomebrew-5c8396b145ed4022668bc917173b53d4c70ec669.tar.bz2
inreplace: odie for Homebrew developers.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/inreplace.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb
index b4bc05468..287058021 100644
--- a/Library/Homebrew/utils/inreplace.rb
+++ b/Library/Homebrew/utils/inreplace.rb
@@ -12,8 +12,11 @@ module Utils
after = after.to_s if Symbol === after
sub = s.gsub!(before, after)
if sub.nil?
- opoo "inreplace in '#{path}' failed"
- puts "Expected replacement of '#{before}' with '#{after}'"
+ message = <<-EOS.undent
+ inreplace in '#{path}' failed
+ Expected replacement of '#{before}' with '#{after}'
+ EOS
+ ARGV.homebrew_developer? ? odie(message) : opoo(message)
end
end