Fixed unwrap method.
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user