mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 07:26:56 +00:00
Merge pull request #1830 from ilovezfs/InreplaceError-fix-undefined-method
InreplaceError: fix undefined method crash
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user