From 76a244543cfdd6a840ad12bab3997aae836e17b8 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 9056c98543d5..865ae82ee13f 100644 --- a/lxd/auth/oidc/oidc.go +++ b/lxd/auth/oidc/oidc.go @@ -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 }