diff options
author | aycabta <aycabta@gmail.com> | 2019-12-11 11:36:21 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-11 11:36:40 +0900 |
commit | 6a7af800dbd45946caaadfc4a1212fc523afe58b (patch) | |
tree | 0084bd24ff9f8ec2ab17aa8e15cdf0315231c526 /lib/reline | |
parent | 7e9b1609dae0998a4418179f40dc488842c56e5d (diff) | |
download | ruby-6a7af800dbd45946caaadfc4a1212fc523afe58b.tar.gz |
Add a message for CompatibilityError
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 2abe659820..928b043669 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -550,7 +550,7 @@ class Reline::LineEditor 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) |