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)]
|
||||
pub enum Error {
|
||||
/// Reqwest error
|
||||
#[error("bleh")]
|
||||
#[error(transparent)]
|
||||
Reqwest(#[from] reqwest::Error),
|
||||
|
||||
/// Header contains non-ASCII characters
|
||||
#[error("header contains non-ASCII characters")]
|
||||
#[error(transparent)]
|
||||
InvalidHeader(#[from] reqwest::header::InvalidHeaderValue),
|
||||
|
||||
/// URL Parse error
|
||||
#[error("not a valid URL")]
|
||||
#[error(transparent)]
|
||||
ParseError(#[from] url::ParseError),
|
||||
|
||||
/// Authentication error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue