better errors

This commit is contained in:
ston1th 2017-11-12 18:11:55 +01:00
commit 83cd654030
3 changed files with 20 additions and 9 deletions

View file

@ -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
}