Fixed unwrap method.

master
jdl 2023-12-05 11:16:35 +01:00
parent 875957f662
commit 54c9e89c3e
1 changed files with 1 additions and 4 deletions

View File

@ -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
return e.err
}
func (e *Error) WithMsg(msg string, args ...any) *Error {