feat: add error message to HttpStatus error
dont create reports on http status errors
This commit is contained in:
parent
cc50862408
commit
fe76b2ac66
3 changed files with 14 additions and 22 deletions
|
|
@ -25,9 +25,9 @@ impl RustyPipeQuery {
|
|||
.http_request_txt(self.client.inner.http.get(&url).build()?)
|
||||
.await
|
||||
.map_err(|e| match e {
|
||||
Error::HttpStatus(404) => Error::Extraction(ExtractionError::ContentUnavailable(
|
||||
"Channel not found".into(),
|
||||
)),
|
||||
Error::HttpStatus(404, _) => Error::Extraction(
|
||||
ExtractionError::ContentUnavailable("Channel not found".into()),
|
||||
),
|
||||
_ => e,
|
||||
})?;
|
||||
|
||||
|
|
|
|||
Reference in a new issue