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())