Exception: Utils::InreplaceError

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/utils/inreplace.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InreplaceError

Returns a new instance of InreplaceError



3
4
5
6
7
8
# File 'Library/Homebrew/utils/inreplace.rb', line 3

def initialize(errors)
  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