Skip to content

Commit

Permalink
Merge pull request twmb#789 from sbuliarca/errgroupsession-export-err
Browse files Browse the repository at this point in the history
kgo: export the wrapped error from ErrGroupSession
  • Loading branch information
twmb authored and ortuman committed Oct 17, 2024
1 parent 4024aea commit eb11971
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 @@ -311,11 +311,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 eb11971

Please sign in to comment.