feat: add error message to HttpStatus error

dont create reports on http status errors
This commit is contained in:
ThetaDev 2023-01-24 23:06:17 +01:00
parent cc50862408
commit fe76b2ac66
3 changed files with 14 additions and 22 deletions

View file

@ -19,8 +19,8 @@ pub enum Error {
#[error("http error: {0}")]
Http(#[from] reqwest::Error),
/// Erroneous HTTP status code received
#[error("http status code: {0}")]
HttpStatus(u16),
#[error("http status code: {0} message: {1}")]
HttpStatus(u16, Cow<'static, str>),
/// Unspecified error
#[error("error: {0}")]
Other(Cow<'static, str>),