Improve error display
This commit is contained in:
parent
6d4ba86149
commit
921a2a5c83
|
@ -13,13 +13,13 @@ use queries::{CreateUser, CreateUserVariables, ListUsers};
|
||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
#[error("{0}")]
|
#[error("Cynic error: {0}")]
|
||||||
Cynic(#[from] CynicReqwestError),
|
Cynic(#[from] CynicReqwestError),
|
||||||
#[error("{0}")]
|
#[error("Reqwest error: {0}")]
|
||||||
Reqwest(#[from] reqwest::Error),
|
Reqwest(#[from] reqwest::Error),
|
||||||
#[error("{0}")]
|
#[error("Authentication error: {0}")]
|
||||||
Authentication(#[from] AuthenticationError),
|
Authentication(#[from] AuthenticationError),
|
||||||
#[error("{0}")]
|
#[error("GraphQL error: {0}")]
|
||||||
GraphQl(#[from] GraphQlError),
|
GraphQl(#[from] GraphQlError),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user