summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/completion.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index 74034893b8..e35fe2a5a3 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -194,6 +194,8 @@ module IRB
":" + s.id2name.encode(Encoding.default_external)
rescue Encoding::UndefinedConversionError
# ignore
+ rescue Encoding::InvalidByteSequenceError => e
+ raise "Invalid byte sequence #{s.id2name.bytes.inspect} #{e.inspect}"
end
candidates.grep(/^#{Regexp.quote(sym)}/)