Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error message typo #155

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions util/loopback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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{}
Expand All @@ -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{}
Expand Down