Fixed unwrap method.
This commit is contained in:
parent
875957f662
commit
54c9e89c3e
@ -50,10 +50,7 @@ func (e *Error) WithErr(err error) *Error {
|
||||
}
|
||||
|
||||
func (e *Error) Unwrap() error {
|
||||
if e.err != nil {
|
||||
return e.err
|
||||
}
|
||||
return e
|
||||
}
|
||||
|
||||
func (e *Error) WithMsg(msg string, args ...any) *Error {
|
||||
|
Loading…
Reference in New Issue
Block a user