diff options
Diffstat (limited to 'teleterm/src/error.rs')
-rw-r--r-- | teleterm/src/error.rs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/teleterm/src/error.rs b/teleterm/src/error.rs index f7946dd..d75aea3 100644 --- a/teleterm/src/error.rs +++ b/teleterm/src/error.rs @@ -74,7 +74,10 @@ pub enum Error { #[snafu(display("received EOF from server"))] EOF, - #[snafu(display("failed to retrieve access token: {:?}", msg))] + #[snafu(display( + "failed to retrieve access token from authorization code: {:?}", + msg + ))] ExchangeCode { msg: String, // XXX RequestTokenError doesn't implement the right traits @@ -87,6 +90,21 @@ pub enum Error { }, #[snafu(display( + "failed to retrieve access token from refresh token: {:?}", + msg + ))] + ExchangeRefreshToken { + msg: String, + // XXX RequestTokenError doesn't implement the right traits + // source: oauth2::RequestTokenError< + // oauth2::reqwest::Error, + // oauth2::StandardErrorResponse< + // oauth2::basic::BasicErrorResponseType, + // >, + // > + }, + + #[snafu(display( "failed to parse string {:?}: unexpected trailing data", data ))] |