mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 12:40:22 +00:00
Fixup more frozen string handling.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user