From f8985cdc74edc8a8e37f7a85e641bdc51891a331 Mon Sep 17 00:00:00 2001 From: Mark Laing Date: Thu, 7 Dec 2023 17:04:55 +0000 Subject: [PATCH] lxd/auth/oidc: Adds comments for exported methods on AuthError. Signed-off-by: Mark Laing --- lxd/auth/oidc/oidc.go | 2 ++ 1 file changed, 2 insertions(+) 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 }