mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
improve package gcmd
This commit is contained in:
parent
18c4082bd2
commit
dd0045e36f
@ -228,7 +228,7 @@ func newCommandFromMethod(object interface{}, method reflect.Value) (command Com
|
||||
|
||||
// Parameters validation.
|
||||
if err = gvalid.New().Bail().Data(inputObject.Interface()).Assoc(data).Run(ctx); err != nil {
|
||||
err = gerror.Current(err)
|
||||
err = gerror.Wrap(gerror.Current(err), `validation failed for command options`)
|
||||
return
|
||||
}
|
||||
inputValues = append(inputValues, inputObject)
|
||||
|
Loading…
Reference in New Issue
Block a user