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

Treat LoadErrors for known gems as trivial #1274

Merged
merged 2 commits into from
Dec 15, 2017

Conversation

denisdefreyne
Copy link
Member

Fixes part of #1273.

  • Known gems: e.g. require 'nokogiri' -> considered a trivial LoadError; Nanoc will tell you to add nokogiri to the Gemfile.

  • Unknown gems: Usual stack trace.

@denisdefreyne
Copy link
Member Author

The error message is still crappy:

% bundle exec nanoc
Loading site… Error: cannot load such file -- nokogiri
Make sure the gem is added to Gemfile and run `bundle install`.

Better:

% bundle exec nanoc
Loading site…

Error: cannot load such file -- nokogiri

1.  Add the `nokogiri` gem to your Gemfile:

        gem 'nokogiri'

2.  Run `bundle`

3.  Re-run `bundle exec nanoc`

@denisdefreyne denisdefreyne merged commit fbe43d6 into master Dec 15, 2017
@denisdefreyne denisdefreyne deleted the treat-known-load-errors-as-trivial branch December 15, 2017 21:04
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.

1 participant