Skip to content

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

@ashmaroli

Description

@ashmaroli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions