优化模版生成

This commit is contained in:
linwenxiang committed 2020-09-16 22:42:13 +08:00
1 parent 91f2adb340
commit 6bc3e6c00b
12 files changed
+53 -50

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ func HasError(err error, msg string, code ...int) {
msg = err.Error()
}
_, file, line, _ := runtime.Caller(1)
log.Printf("%s:%v",file, line)
log.Printf("%s:%v", file, line)
panic("CustomError#" + strconv.Itoa(statusCode) + "#" + msg)
}
}