Skip to content

Commit 1ca1c33

Browse files
committed
Let's ignore invalid encoding too.
1 parent 3d21703 commit 1ca1c33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def print(*params)
344344
end
345345

346346
def handle_binary_data(value)
347-
return "[Binary Data]" if (value.respond_to?('is_binary_data?') && value.is_binary_data?)
347+
return '[Binary Data]' if (value.respond_to?('is_binary_data?') && value.is_binary_data?)
348+
return '[Invalid encoding]' if (value.respond_to?('valid_encoding?') && !value.valid_encoding?)
348349
value
349350
end
350351

0 commit comments

Comments
 (0)