diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-11 13:26:50 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-11 13:26:50 +0200 |
| commit | 994f18e532c0501a51fd9bb8563d6ee351785e04 (patch) | |
| tree | 90ed7e50d90890ec31b6912d945bb7667d83a1a7 | |
| parent | 2565f5be6a2653edbec06ec36f8d5d8bff925da0 (diff) | |
OAuth: Make OAuth cancel error less confusing
| -rw-r--r-- | internal/oauth/oauth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/oauth/oauth.go b/internal/oauth/oauth.go index ef1bed4..d828e57 100644 --- a/internal/oauth/oauth.go +++ b/internal/oauth/oauth.go @@ -289,7 +289,7 @@ func (oauth *OAuth) Finish() error { } func (oauth *OAuth) Cancel() { - oauth.Session.CallbackError = &types.WrappedErrorMessage{Message: "failed cancelling OAuth", Err: &OAuthCancelledCallbackError{}} + oauth.Session.CallbackError = &types.WrappedErrorMessage{Message: "cancelled OAuth", Err: &OAuthCancelledCallbackError{}} oauth.Session.Server.Shutdown(oauth.Session.Context) } |
