Skip to content

Commit

Permalink
kgo: export the wrapped error from ErrGroupSession
Browse files Browse the repository at this point in the history
  • Loading branch information
sbuliarca committed Jul 24, 2024
1 parent 9569753 commit 06a9c47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/kgo/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ func (e *errUnknownCoordinator) Error() string {
// consumer group member was kicked from the group or was never able to join
// the group.
type ErrGroupSession struct {
err error
Err error
}

func (e *ErrGroupSession) Error() string {
return fmt.Sprintf("unable to join group session: %v", e.err)
return fmt.Sprintf("unable to join group session: %v", e.Err)
}

func (e *ErrGroupSession) Unwrap() error { return e.err }
func (e *ErrGroupSession) Unwrap() error { return e.Err }

0 comments on commit 06a9c47

Please sign in to comment.