From 55ad5ab53d7239437b363e9998106c3b3119f0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ate=C5=9F=20Uzun?= Date: Wed, 13 Sep 2023 21:33:52 +0300 Subject: [PATCH] fix: error message typo (#155) --- util/loopback.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/loopback.go b/util/loopback.go index ce15236..d27e7a0 100644 --- a/util/loopback.go +++ b/util/loopback.go @@ -42,7 +42,7 @@ const ( // (waiting for authorization code request to start, // or for authorization code request to complete) WAITING AuthorizationCodeRequestStatus = iota - // Athorization code successfully granted. + // Authorization code successfully granted. GRANTED // Failed to grant authorization code FAILED @@ -259,7 +259,7 @@ func (lh *AuthorizationCodeLocalhost) redirectUriHandler(w http.ResponseWriter, urlState := urlValues.Get("state") // No Code, Status, or Error is treated as unknown error if urlCode == "" && urlState == "" { - err := "Unknown error when getting athorization code" + err := "Unknown error when getting authorization code" lh.AuthCodeReqStatus = AuthorizationCodeStatus{Status: FAILED, Details: err} lh.authCode = AuthorizationCode{} @@ -283,7 +283,7 @@ func (lh *AuthorizationCodeLocalhost) redirectUriHandler(w http.ResponseWriter, return } - err = fmt.Errorf("Athorization code missing code or state.") + err = fmt.Errorf("Authorization code missing code or state.") lh.AuthCodeReqStatus = AuthorizationCodeStatus{Status: FAILED, Details: err.Error()} lh.authCode = AuthorizationCode{}