优化模版生成
This commit is contained in:
1 parent
91f2adb340
commit
6bc3e6c00b
12 files changed
+53
-50
No files matched your search
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user