feat: handle error 400 for invalid ctokens
This commit is contained in:
parent
f7fbf40721
commit
cc50862408
4 changed files with 64 additions and 9 deletions
|
|
@ -74,6 +74,9 @@ pub enum ExtractionError {
|
|||
/// Content is not available / does not exist
|
||||
#[error("Content is not available. Reason: {0}")]
|
||||
ContentUnavailable(Cow<'static, str>),
|
||||
/// Bad request (Error 400 from YouTube), probably invalid input parameters
|
||||
#[error("Bad request. Reason: {0}")]
|
||||
BadRequest(Cow<'static, str>),
|
||||
/// Error deserializing YouTube's response JSON
|
||||
#[error("deserialization error: {0}")]
|
||||
Deserialization(#[from] serde_json::Error),
|
||||
|
|
|
|||
Reference in a new issue