Skip to content

Commit

Permalink
lxd/auth/oidc: Adds comments for exported methods on AuthError.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <mark.laing@canonical.com>
  • Loading branch information
markylaing committed Jan 23, 2024
1 parent a719b11 commit 5b624c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lxd/auth/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ type AuthError struct {
Err error
}

// Error implements the error interface for AuthError.
func (e AuthError) Error() string {
return fmt.Sprintf("Failed to authenticate: %s", e.Err.Error())
}

// Unwrap implements the xerrors.Wrapper interface for AuthError.
func (e AuthError) Unwrap() error {
return e.Err
}
Expand Down

0 comments on commit 5b624c3

Please sign in to comment.