Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Stop swallowing exceptions with 'There was an error while trying to load the gem" #4279

Closed
grosser opened this issue Feb 4, 2016 · 6 comments

Comments

@grosser
Copy link
Contributor

grosser commented Feb 4, 2016

this is not very helpful when trying to debug why something failed

rake/rake_test_loader.rb" "test/**/*_test.rb"
/opt/boxen/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'query_diet'. (Bundler::GemRequireError)
    from /opt/boxen/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
@segiddins
Copy link
Member

@grosser have a reproducible example of this happening?

@indirect
Copy link
Member

indirect commented Feb 4, 2016

I believe we just fixed this, and it will go out in 1.12.

@grosser
Copy link
Contributor Author

grosser commented Feb 4, 2016

example is putting raise 'foo' into a gemspec ... I'll recheck on 1.12

On Thu, Feb 4, 2016 at 1:41 PM, André Arko [email protected] wrote:

I believe we just fixed this, and it will go out in 1.12.


Reply to this email directly or view it on GitHub
#4279 (comment).

@grosser
Copy link
Contributor Author

grosser commented Feb 4, 2016

yeah, code is good now \nThe error message was: #{e.message}.

@grosser grosser closed this as completed Feb 4, 2016
@grosser grosser reopened this Feb 4, 2016
@grosser
Copy link
Contributor Author

grosser commented Feb 4, 2016

@grosser grosser closed this as completed Feb 4, 2016
@RochesterinNYC
Copy link
Contributor

For reference, this is the PR that addressed it: #4187

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants