fix bug, return err when failed binding bool

This commit is contained in:
chainhelen 2018-05-10 03:25:07 +08:00
parent bd4f73af67
commit e4ce586cfe

View File

@ -161,7 +161,7 @@ func setBoolField(val string, field reflect.Value) error {
if err == nil {
field.SetBool(boolVal)
}
return nil
return err
}
func setFloatField(val string, bitSize int, field reflect.Value) error {