aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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