added README.md once again
This commit is contained in:
6
error.go
6
error.go
@ -37,11 +37,7 @@ func errtype(err error) string {
|
||||
if e, ok := err.(*Error); ok && e.tmpl != nil {
|
||||
return errtype(e.tmpl)
|
||||
} else if tmpl, ok := err.(*ErrTmpl); ok {
|
||||
t := reflect.TypeOf(tmpl)
|
||||
for t.Kind() == reflect.Ptr {
|
||||
t = t.Elem()
|
||||
}
|
||||
return t.PkgPath() + "." + tmpl.name
|
||||
return tmpl.name
|
||||
}
|
||||
|
||||
t := reflect.TypeOf(err)
|
||||
|
Reference in New Issue
Block a user