mirror of
https://github.com/narrrl/ytd-rs.git
synced 2026-11-04 17:07:01 +01:00
reimplemented the result with errors
This commit is contained in:
1 parent
116f5ae314
commit
247b5b942d
4 files changed
+39
-108
No files matched your search
@@ -0,0 +1,11 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum YoutubeDLError {
|
||||
#[error("failed to execute youtube-dl")]
|
||||
IOError(#[from] std::io::Error),
|
||||
#[error("failed to convert path")]
|
||||
UTF8Error(#[from] std::string::FromUtf8Error),
|
||||
#[error("youtube-dl exited with: {0}")]
|
||||
Failure(String),
|
||||
}
|
||||
Reference in new issue
Block a user