Open
Description
This is a refactoring task that can be done after new parser is implemented.
Applicable to two creation results:
MissingMandatoryParam
, InvalidParamValues
.
Both of these cases are caused by invalid parameters passed to TemplateCreator
on template creation.
The error message returned by TemplateCreator
in those cases is poor:
- for
MissingMandatoryParam
it is a comma-separated list of missing parameters - similar to
InvalidParamValues
Due to this, TemplateInvoker
in CLI has weird logic of parsing those messages, as it needs to show errors about options, and not parameter names.
Consider improving ITemplateCreationResult
for these statuses. As example, it may contain dictionary with parameters and localized error message, then TemplateInvoker
can use it to show error message vs template options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment