From 54a0e1f55ccb1f38a17f52c65230c16801f7d55f Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Sat, 15 Jun 2024 00:04:29 -0400 Subject: [PATCH] fix error --- src/bin/command/auth/login.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/command/auth/login.rs b/src/bin/command/auth/login.rs index 16d5890..6f0aa38 100644 --- a/src/bin/command/auth/login.rs +++ b/src/bin/command/auth/login.rs @@ -53,10 +53,15 @@ struct CallbackPayload { enum CallbackError { #[error(transparent)] Io(#[from] std::io::Error), + #[error("Api error: {0}")] Api(#[from] slot::api::Error), + #[error(transparent)] Other(#[from] anyhow::Error), + + #[error(transparent)] + Credentials(#[from] slot::credential::Error), } impl IntoResponse for CallbackError { @@ -90,7 +95,7 @@ async fn handler(Query(payload): Query) -> Result