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
Closed

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

ashmaroli opened this issue Feb 12, 2019 · 1 comment
Milestone

Comments

@ashmaroli
Copy link

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
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 as completed in e509934 Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants