diff options
| author | ilovezfs | 2017-01-13 00:27:18 -0800 | 
|---|---|---|
| committer | GitHub | 2017-01-13 00:27:18 -0800 | 
| commit | 1442a0aa7ffd342bdfdf9a8d8fdade86a8b45abe (patch) | |
| tree | 4064bb360c51adaf9282b587bf0acc43d8843046 | |
| parent | b34475997e5bf62bac5cb96d525e57db7cf0fe82 (diff) | |
| parent | ac7a59373087e9d49097ab7f0ddb691e64159959 (diff) | |
| download | brew-1442a0aa7ffd342bdfdf9a8d8fdade86a8b45abe.tar.bz2 | |
Merge pull request #1830 from ilovezfs/InreplaceError-fix-undefined-method
InreplaceError: fix undefined method crash
| -rw-r--r-- | Library/Homebrew/utils/inreplace.rb | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index c7557ab41..b4c219f06 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -1,9 +1,10 @@  module Utils    class InreplaceError < RuntimeError      def initialize(errors) -      super errors.inject("inreplace failed\n") do |s, (path, errs)| +      formatted_errors = errors.inject("inreplace failed\n") do |s, (path, errs)|          s << "#{path}:\n" << errs.map { |e| "  #{e}\n" }.join        end +      super formatted_errors      end    end | 
