Skip to content

Do the read of the full file contents separately#6313

Merged
headius merged 1 commit intojruby:masterfrom
headius:isolate_io_exception
Jul 9, 2020
Merged

Do the read of the full file contents separately#6313
headius merged 1 commit intojruby:masterfrom
headius:isolate_io_exception

Conversation

@headius
Copy link
Member

@headius headius commented Jul 9, 2020

This allows us to propagate IOException rather than wrongly
interpreting it as an error caused by the load of the file itself.
It still gets wrapped in a LoadError, but at least it does not
provide a misleading message.

Relates to #4194.

This allows us to propagate IOException rather than wrongly
interpreting it as an error caused by the load of the file itself.
It still gets wrapped in a LoadError, but at least it does not
provide a misleading message.

Relates to jruby#4194.
@olleolleolle
Copy link
Member

This will communicate clearer to the user, and will solve my reported problem. Thanks for your tenacity!

@headius headius merged commit fad433e into jruby:master Jul 9, 2020
@headius headius deleted the isolate_io_exception branch July 9, 2020 18:57
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

Successfully merging this pull request may close these issues.

"LoadError: no such file to load" if IOException is raised in loaded file

2 participants