Homebrew/homebrew — pull request #32703 by jacknagel (2014-09-27 04:34:13+00:00)
Title: Make inreplace errors fatal

As discussed in #32649.

Given this:

```rb
inreplace %w[Makefile tree.c] do |s|
s.gsub! "foo", "bar"
s.remove_make_var! "FOO"
s.change_make_var! "BAR", "flags"
end
```

the error looks like:

```
$ brew install tree -s
==> Downloading http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz
Already downloaded: /Library/Caches/Homebrew/tree-1.7.0.tgz
Error: inreplace failed
Makefile:
expected replacement of "foo" with "bar"
expected to remove "FOO"
expected to change "BAR" to "BAR=flags"
tree.c:
expected replacement of "foo" with "bar"
expected to remove "FOO"
expected to change "BAR" to "BAR=flags"
```