better errors
This commit is contained in:
parent
a2e54b1f0e
commit
83cd654030
3 changed files with 20 additions and 9 deletions
|
|
@ -83,7 +83,7 @@ func getValue(v reflect.Value) (s string, b bool, err error) {
|
|||
case reflect.Bool:
|
||||
b = v.Bool()
|
||||
default:
|
||||
err = errors.New("nil")
|
||||
err = nilErr
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue