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

Error on missing plugin before unknown option #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spoonincode
Copy link

Change appbase to error out when seeing an unknown plugin before erroring out on an unknown option. Otherwise it’s a little confusing that the reason the option isn’t recognized is because the plugin simply doesn’t even exist.

To accomplish this, have to make two passes through config.ini. First pass just parses the plugin= statements and then makes sure those are all valid, second pass parses all options.

Keep in mind this doesn’t change behavior where you can set a plugin option and not activate said plugin. For example I can still put bnet-threads in my config.ini but this will not be an error even I forgot to activate eosio::bnet_plugin

Change appbase to error out when seeing an unknown plugin before erroring out on an unknown option. Otherwise it’s a little confusing that the reason the option isn’t recognized is because the plugin simply doesn’t even exist.

To accomplish this, have to make two passes through config.ini. First pass just parses the plugin= statements and then makes sure those are all valid, second pass parses all options.

Keep in mind this doesn’t change behavior where you can set a plugin option and not activate said plugin. For example I can still put bnet-threads in my config.ini but this will not be an error even I forgot to activate eosio::bnet_plugin
@heifner
Copy link

heifner commented Aug 8, 2019

@spoonincode Are you still interested in getting this change in. Seems like a good idea.

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.

2 participants