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

Match MRI's default exception message display on RuntimeError with empty message #3255

Closed
nirvdrum opened this issue Sep 11, 2023 · 1 comment

Comments

@nirvdrum
Copy link
Collaborator

While working on eliminating the number of tests skipped on TruffleRuby in the IRB test suite with @st0012, we ran into a case where TruffleRuby doesn't report that an exception was unhandled the same way as MRI. There are two different tests in IRB that check for the text "unhandled exception". While I believe this is only a display issue, if we can match MRI cheaply we should do so.

> ruby -v -e 'def hoge() fuga; end; def fuga() raise; end; hoge'
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
-e:1:in `fuga': unhandled exception
        from -e:1:in `hoge'
        from -e:1:in `<main>'
> jt ruby -v -e 'def hoge() fuga; end; def fuga() raise; end; hoge'
truffleruby 24.0.0-dev-260d07b7, like ruby 3.2.2, GraalVM CE JVM [aarch64-darwin]
-e:1:in `fuga':  (RuntimeError)
        from -e:1:in `hoge'
        from -e:1:in `<main>'
@nirvdrum nirvdrum changed the title Not reporting exception as "unhandled" the same way as MRI Match MRI's default exception message display on RuntimeError with empty message Sep 12, 2023
@eregon
Copy link
Member

eregon commented Nov 20, 2023

Fixed in #3323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants