From 5b624c39f393cb45ddc9ff83619e7b6bcd1e5a7c 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 68bf78089087..616269727979 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 }