Merge pull request #1830 from ilovezfs/InreplaceError-fix-undefined-method
InreplaceError: fix undefined method crash
This commit is contained in:
commit
1442a0aa7f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user