You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: qcs-api-client-common/src/configuration/error.rs
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -90,8 +90,15 @@ pub enum TokenError {
90
90
#[error("Failed to request an externally managed access token: {0}")]
91
91
ExternallyManaged(String),
92
92
/// Failure writing the new access token to the secrets file.
93
-
#[error("Failed to write the new access token to the secrets file. Setting `{SECRETS_READ_ONLY_VAR}=true` in the environment will skip persistence of newly acquired tokens. Error details: {0}")]
94
-
Write(#[from]WriteError),
93
+
#[error("Failed to write the new access token to the secrets file. Setting `{SECRETS_READ_ONLY_VAR}=true` in the environment will skip persistence of newly acquired tokens. Error details: {error}")]
94
+
Write{
95
+
/// The underlying write error.
96
+
error:WriteError,
97
+
/// The successfully refreshed OAuth session that failed to persist. The token is valid and can be used despite the write failure.
98
+
///
99
+
/// Boxed to reduce the size of the `TokenError` enum and avoid `clippy::result_large_err` warnings.
100
+
oauth_session:Box<super::OAuthSession>,
101
+
},
95
102
/// Failure fetching the OIDC discovery document.
96
103
#[error("Failed to fetch the OIDC discovery document: {0}")]
0 commit comments