added README.md once again

This commit is contained in:
Timon Ringwald
2020-09-09 13:34:23 +02:00
parent 9d0c74df68
commit b33b40c9ff
2 changed files with 87 additions and 5 deletions

View File

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