Skip to content
Snippets Groups Projects
Commit 1442a0aa authored by ilovezfs's avatar ilovezfs Committed by GitHub
Browse files

Merge pull request #1830 from ilovezfs/InreplaceError-fix-undefined-method

InreplaceError: fix undefined method crash
parents b3447599 ac7a5937
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment