ruby-changes:59175
From: aycabta <ko1@a...>
Date: Wed, 11 Dec 2019 11:56:37 +0900 (JST)
Subject: [ruby-changes:59175] 6a7af800db (master): Add a message for CompatibilityError
https://git.ruby-lang.org/ruby.git/commit/?id=6a7af800db From 6a7af800dbd45946caaadfc4a1212fc523afe58b Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 11 Dec 2019 11:36:21 +0900 Subject: Add a message for CompatibilityError diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 2abe659..928b043 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -550,7 +550,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L550 preposing, target, postposing = retrieve_completion_block list = list.select { |i| if i and not Encoding.compatible?(target.encoding, i.encoding) - raise Encoding::CompatibilityError + raise Encoding::CompatibilityError, "#{target.encoding.name} is not comaptible with #{i.encoding.name}" end if @config.completion_ignore_case i&.downcase.start_with?(target.downcase) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/