mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
improve package gcmd
This commit is contained in:
@ -288,7 +288,7 @@ func newCommandFromMethod(object interface{}, method reflect.Value) (command *Co
|
||||
|
||||
// Parameters validation.
|
||||
if err = gvalid.New().Bail().Data(inputObject.Interface()).Assoc(data).Run(ctx); err != nil {
|
||||
err = gerror.Wrap(gerror.Current(err), `validation failed for command options`)
|
||||
err = gerror.Wrapf(gerror.Current(err), `arguments validation failed for command "%s"`, command.Name)
|
||||
return
|
||||
}
|
||||
inputValues = append(inputValues, inputObject)
|
||||
|
||||
Reference in New Issue
Block a user