feat kafka
This commit is contained in:
@@ -25,6 +25,9 @@ func (e *WrapErrors) StackTrace() string {
|
||||
}
|
||||
|
||||
func ErrorsWrap(err error, message ...string) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
var e *WrapErrors
|
||||
if !errors.As(err, &e) {
|
||||
e = &WrapErrors{}
|
||||
@@ -39,6 +42,9 @@ func ErrorsWrap(err error, message ...string) error {
|
||||
}
|
||||
|
||||
func ErrorsWrapF(err error, message string, a ...any) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
var e *WrapErrors
|
||||
if !errors.As(err, &e) {
|
||||
e = &WrapErrors{}
|
||||
|
||||
Reference in New Issue
Block a user