Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel#warn doesn't handle exceptions as expected #5608

Closed
ashmaroli opened this Issue Feb 12, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@ashmaroli
Copy link

ashmaroli commented Feb 12, 2019

Environment

(Note: This issue was detected on Travis CI and has has not been tested elsewhere.)

  • JRuby version (jruby -v): 9.2.6.0
  • Operating system and platform (e.g. uname -a): Ubuntu 14.04.5 LTS

Other relevant info you may wish to add:

Expected Behavior

# sample script

exp = ArgumentError.new('lorem ipsum dolor sit')
warn exp

# (On MRI):
# => "lorem ipsum dolor sit"

Actual Behavior

TypeError: no implicit conversion of ArgumentError into String

@enebo enebo added this to the JRuby 9.2.7.0 milestone Feb 12, 2019

@enebo

This comment has been minimized.

Copy link
Member

enebo commented Feb 12, 2019

Wow you found something we have never implemented which was valid in Ruby 1.8 (and possibly older)!

@enebo enebo closed this in e509934 Feb 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.