ytd_rs/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum YoutubeDLError {
5 #[error("failed to execute youtube-dl")]
6 IOError(#[from] std::io::Error),
7 #[error("failed to convert path")]
8 UTF8Error(#[from] std::string::FromUtf8Error),
9 #[error("youtube-dl exited with: {0}")]
10 Failure(String),
11}