Fixup more frozen string handling.

This commit is contained in:
Mike McQuaid
2019-04-20 14:07:29 +09:00
parent 36dbad3922
commit fc6bd2ea1c
17 changed files with 40 additions and 34 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
module Utils
class InreplaceError < RuntimeError
def initialize(errors)
formatted_errors = errors.reduce("inreplace failed\n") do |s, (path, errs)|
formatted_errors = errors.reduce(+"inreplace failed\n") do |s, (path, errs)|
s << "#{path}:\n" << errs.map { |e| " #{e}\n" }.join
end
super formatted_errors
super formatted_errors.freeze
end
end