fix: make error output more useful

This commit is contained in:
Radical 2025-06-25 14:16:07 +02:00
parent 57e76753f5
commit c57ca25d78

View file

@ -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