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

Friendly error message if missing listen development dependency #24067

Merged
merged 1 commit into from
Mar 8, 2016
Merged

Friendly error message if missing listen development dependency #24067

merged 1 commit into from
Mar 8, 2016

Conversation

jch
Copy link
Contributor

@jch jch commented Mar 4, 2016

Summary

This PR is a follow up to #24066. It prints a better error message for users who upgrade from a previous version of Rails and forget to specify or accidentally remove the listen gem.

cc @dewski @rafaelfranca @arthurnn

@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @sgrif (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

begin
require 'listen'
rescue LoadError => e
raise LoadError, "Could not load the 'listen' gem. Add `gem 'listen'` to the development section of your Gemfile", e.backtrace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would replace "development section" with "development group" here as that is what its called in Gemfile.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 to development group instead too.

Also, can you squash/force push this after you change it?
thanks

@maclover7
Copy link
Contributor

cc @fxn

@arthurnn arthurnn assigned arthurnn and unassigned sgrif Mar 7, 2016
@jch
Copy link
Contributor Author

jch commented Mar 8, 2016

@arthurnn force pushed. Ready for review again

arthurnn pushed a commit that referenced this pull request Mar 8, 2016
…dependency

Friendly error message if missing `listen` development dependency
@arthurnn arthurnn merged commit 8c2a697 into rails:master Mar 8, 2016
@arthurnn
Copy link
Member

arthurnn commented Mar 8, 2016

Thanks

@jch jch deleted the error-message-when-missing-listen-dependency branch March 8, 2016 16:46
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.

None yet

6 participants