fix: make error output more useful
This commit is contained in:
parent
57e76753f5
commit
c57ca25d78
1 changed files with 3 additions and 3 deletions
|
@ -4,15 +4,15 @@
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// Reqwest error
|
/// Reqwest error
|
||||||
#[error("bleh")]
|
#[error(transparent)]
|
||||||
Reqwest(#[from] reqwest::Error),
|
Reqwest(#[from] reqwest::Error),
|
||||||
|
|
||||||
/// Header contains non-ASCII characters
|
/// Header contains non-ASCII characters
|
||||||
#[error("header contains non-ASCII characters")]
|
#[error(transparent)]
|
||||||
InvalidHeader(#[from] reqwest::header::InvalidHeaderValue),
|
InvalidHeader(#[from] reqwest::header::InvalidHeaderValue),
|
||||||
|
|
||||||
/// URL Parse error
|
/// URL Parse error
|
||||||
#[error("not a valid URL")]
|
#[error(transparent)]
|
||||||
ParseError(#[from] url::ParseError),
|
ParseError(#[from] url::ParseError),
|
||||||
|
|
||||||
/// Authentication error
|
/// Authentication error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue