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

Misspelled plugin name raises meaningful error #135

Merged
merged 1 commit into from Jan 19, 2020

Conversation

cgeorgii
Copy link
Contributor

This pull request fixes #132.

Note: I wasn't sure where to put the new Dry::System::PluginNotFoundError definition. There are two files that contain error definitions, lib/dry/system/constants.rb and lib/dry/system/errors.rb and the latter seemed like the correct place. In fact, I'm not really sure whether it makes sense to have error definitions in the constants file, so let me know if I can move them.

@cgeorgii cgeorgii requested a review from solnic January 19, 2020 16:35
@solnic
Copy link
Member

solnic commented Jan 19, 2020

Thanks!

Note: I wasn't sure where to put the new Dry::System::PluginNotFoundError definition. There are two files that contain error definitions, lib/dry/system/constants.rb and lib/dry/system/errors.rb and the latter seemed like the correct place. In fact, I'm not really sure whether it makes sense to have error definitions in the constants file, so let me know if I can move them.

Yes, exception classes should go to errors.rb. We should move stuff from constants.rb.

@solnic solnic merged commit f59ce2c into dry-rb:master Jan 19, 2020
@cgeorgii cgeorgii deleted the plugin_not_found_error branch January 26, 2020 13:45
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.

Misspelled plugin name causes confusing exception
2 participants