reimplemented the result with errors

This commit is contained in:
Nils Pukropp committed 2021-11-14 14:51:02 +01:00
1 parent 116f5ae314
commit 247b5b942d
4 files changed
+39 -108

No files matched your search

+11
View File
@@ -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),
}