diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-27 13:10:06 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-27 15:17:59 -0500 |
commit | 2bb014f580863f28ecbbea68a2b0aeaa815dc8ca (patch) | |
tree | 235397a0d50f76fa906697eb1279f10905398cbd /teleterm/src/oauth.rs | |
parent | 0a31f6bcd806eeaf1fcfddbcfbd466db969ed006 (diff) | |
download | teleterm-2bb014f580863f28ecbbea68a2b0aeaa815dc8ca.tar.gz teleterm-2bb014f580863f28ecbbea68a2b0aeaa815dc8ca.zip |
better error messages
Diffstat (limited to 'teleterm/src/oauth.rs')
-rw-r--r-- | teleterm/src/oauth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/teleterm/src/oauth.rs b/teleterm/src/oauth.rs index 1229855..0d55a9f 100644 --- a/teleterm/src/oauth.rs +++ b/teleterm/src/oauth.rs @@ -71,7 +71,7 @@ pub trait Oauth { .request_async(oauth2::reqwest::async_http_client) .map_err(|e| { let msg = stringify_oauth2_http_error(&e); - Error::ExchangeCode { msg } + Error::ExchangeRefreshToken { msg } }) .and_then(|token| { let access_token = token.access_token().secret().to_string(); |