Initial commit (code only without large binaries)
This commit is contained in:
11
EdgeAPI/internal/utils/errors.go
Normal file
11
EdgeAPI/internal/utils/errors.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/iwind/TeaGo/logs"
|
||||
)
|
||||
|
||||
// 打印错误
|
||||
func PrintError(err error) {
|
||||
// TODO 记录调用的文件名、行数
|
||||
logs.Println("[ERROR]" + err.Error())
|
||||
}
|
||||
Reference in New Issue
Block a user