Skip to content

Commit

Permalink
Echo debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Nov 23, 2024
1 parent a409bb5 commit 772c9e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/cli/commands/dns_proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@
# XXX: TruffleRuby's RegexpError exception message is different
if RUBY_ENGINE == 'truffleruby'
expect {
subject.parse_rule(rule)
begin
subject.parse_rule(rule)
rescue => error
p error.message.encoding
raise(error)
end
}.to raise_error(OptionParser::InvalidArgument,"invalid Regexp: premature end of char-class: /[abc/")
else
expect {
Expand Down

0 comments on commit 772c9e5

Please sign in to comment.