We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When a plugin name is misspelled, you'll end up with a confusing exception.
To Reproduce
class MyContainer < Dry::System::Container use :roargh end
Results in:
NoMethodError: undefined method `load_dependencies' for nil:NilClass # .gem/ruby/2.4.1/gems/dry-system-0.12.0/lib/dry/system/plugins.rb:86:in `use'
Expected behavior
A meaningful error should be raised saying "Plugin :roargh does not exist"
"Plugin :roargh does not exist"
The text was updated successfully, but these errors were encountered:
Merge pull request #135 from cgeorgii/plugin_not_found_error
f59ce2c
[changelog] fixed: - "Misspelled plugin name raises meaningful error (issue #132) (@cgeorgii)"
Successfully merging a pull request may close this issue.
Describe the bug
When a plugin name is misspelled, you'll end up with a confusing exception.
To Reproduce
Results in:
Expected behavior
A meaningful error should be raised saying
"Plugin :roargh does not exist"
The text was updated successfully, but these errors were encountered: