Skip to content

Conversation

@Earlopain
Copy link
Contributor

What was the end-user or developer problem that led to this PR?

Followup to #8436

It fixed showing the template when requiring a non-existant file but user code can do much more than just trying to require other code.

I encountered this particular case because of load order issues, where a library wasn't able to properly require itself when loaded before some other library.

What is your fix for the problem, implemented in this PR?

Rescue the much more generic StandardError instead. I believe this is fine, since no bundler/rubygems related code that runs inbetween that could be accidentally catched by this. There was no issue when using it plainly with rails but bundle console made issues.

Make sure the following tasks are checked

@Earlopain Earlopain force-pushed the bundler-console-other-errors branch 3 times, most recently from d0f0edb to 3a0a165 Compare June 30, 2025 11:50
…ng require

Followup to ruby#8436

It fixed showing the template when requiring a non-existant file but
user code can do much more than just trying to require other code.

I encountered this particular case because of load order issues, where a library wasn't able
to properly require itself when loaded before some other library.
@deivid-rodriguez deivid-rodriguez force-pushed the bundler-console-other-errors branch from 3a0a165 to 1c910e5 Compare July 1, 2025 12:28
@deivid-rodriguez deivid-rodriguez merged commit dc01f88 into ruby:master Jul 1, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants