diff --git a/lxd/auth/oidc/oidc.go b/lxd/auth/oidc/oidc.go index aa9397dae656..f52fddee9143 100644 --- a/lxd/auth/oidc/oidc.go +++ b/lxd/auth/oidc/oidc.go @@ -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 }