From 31098996a6761b138925d218cb394733d0936b9e Mon Sep 17 00:00:00 2001 From: "daniel.w" Date: Wed, 13 Nov 2024 14:58:30 +0800 Subject: [PATCH] fix error ers --- errs/error_code.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errs/error_code.go b/errs/error_code.go index bdc05e6..c3603a5 100644 --- a/errs/error_code.go +++ b/errs/error_code.go @@ -25,13 +25,13 @@ func ThirdPartyErrorL(scope uint32, ec ErrorCode, return e } -func DatabaseErrorWithScope(scope uint32, ec ErrorCode, s ...string) *ers.LibError { +func DatabaseErrorWithScope(scope uint32, ec ErrorCode, s ...string) *LibError { return NewError(scope, code.DBError, ec.ToUint32(), strings.Join(s, " ")) } func DatabaseErrorWithScopeL(scope uint32, ec ErrorCode, - l logx.Logger, filed []logx.LogField, s ...string) *ers.LibError { + l logx.Logger, filed []logx.LogField, s ...string) *LibError { e := DatabaseErrorWithScope(scope, ec, s...) l.WithCallerSkip(1).WithFields(filed...).Error(e.Error())