完善error库

This commit is contained in:
hoteas
2021-05-29 00:15:13 +08:00
parent 339302956a
commit 764d88894e
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -82,6 +82,10 @@ func findCaller(skip int) string {
for i := 0; i < 10; i++ {
file, line = getCaller(skip + i)
if !strings.HasPrefix(file, "logrus") {
if file == "common/error.go" {
file, line = getCaller(skip + i + 1)
}
break
}
}