add error handler

This commit is contained in:
2020-10-25 11:06:43 +03:00
parent 13bda376d6
commit 365fc32888
4 changed files with 26 additions and 16 deletions

View File

@@ -40,6 +40,10 @@ func (i *Input) Bind(ctx context.Context, def *input.Definition) error {
return i.bindOptions(ctx, def)
}
func (i *Input) build(ctx context.Context) error {
return nil
}
func (i *Input) bindOptions(ctx context.Context, def *input.Definition) error {
for _, name := range def.Options() {
opt, err := def.Option(name)