lib/rubygems/exceptions.rb in rubygems-update-2.5.1 vs lib/rubygems/exceptions.rb in rubygems-update-2.5.2

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # TODO: the documentation in here is terrible. # # Each exception needs a brief description and the scenarios where it is # likely to be raised @@ -135,11 +136,11 @@ def build_message # :nodoc: requester = @request.requester requester = requester ? requester.spec.full_name : 'The user' dependency = @request.dependency - message = "#{requester} requires #{dependency} but it conflicted:\n" + message = "#{requester} requires #{dependency} but it conflicted:\n".dup @conflicts.each do |_, conflict| message << conflict.explanation end @@ -265,6 +266,5 @@ ## # Backwards compatible typo'd exception class for early RubyGems 2.0.x Gem::UnsatisfiableDepedencyError = Gem::UnsatisfiableDependencyError # :nodoc: -