add value vithh error (#1)
Co-authored-by: andrey1s <andrey@4devs.pro> Reviewed-on: #1 Co-authored-by: andrey <andrey@4devs.io> Co-committed-by: andrey <andrey@4devs.io>
This commit was merged in pull request #1.
This commit is contained in:
@@ -2,6 +2,7 @@ package input
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"gitoa.ru/go-4devs/console/input/value"
|
||||
)
|
||||
@@ -35,7 +36,7 @@ func (c chain) Argument(ctx context.Context, name string) value.Value {
|
||||
func (c chain) Bind(ctx context.Context, def *Definition) error {
|
||||
for _, input := range c {
|
||||
if err := input.Bind(ctx, def); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("%T:%w", input, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user