Skip to content

Commit

Permalink
fix: error message typo (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
0o001 authored Sep 13, 2023
1 parent 21ab08b commit 55ad5ab
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 55ad5ab

Please sign in to comment.