refactor: uopdate NotFound error type
This commit is contained in:
parent
289b1cdbf4
commit
c021496a55
10 changed files with 119 additions and 137 deletions
|
|
@ -62,7 +62,7 @@ impl MapResponse<Playlist> for response::Playlist {
|
|||
) -> Result<MapResult<Playlist>, ExtractionError> {
|
||||
let (contents, header) = match (self.contents, self.header) {
|
||||
(Some(contents), Some(header)) => (contents, header),
|
||||
_ => return Err(response::alerts_to_err(self.alerts)),
|
||||
_ => return Err(response::alerts_to_err(id, self.alerts)),
|
||||
};
|
||||
|
||||
let video_items = contents
|
||||
|
|
|
|||
Reference in a new issue