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 <[email protected]>
  • Loading branch information
markylaing committed Dec 12, 2023
1 parent 0171d6a commit 76a2445
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 @@ -54,10 +54,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 76a2445

Please sign in to comment.