pinakes-core: add error variants for external tool calls and subtitle ops
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9c9f4a7de065e176e16b108411c3d44b6a6a6964
This commit is contained in:
parent
ee5df288bc
commit
2daa1e4395
1 changed files with 9 additions and 0 deletions
|
|
@ -111,6 +111,15 @@ pub enum PinakesError {
|
||||||
|
|
||||||
#[error("serialization error: {0}")]
|
#[error("serialization error: {0}")]
|
||||||
Serialization(String),
|
Serialization(String),
|
||||||
|
|
||||||
|
#[error("external tool `{tool}` failed: {stderr}")]
|
||||||
|
ExternalTool { tool: String, stderr: String },
|
||||||
|
|
||||||
|
#[error("subtitle track {index} not found in media")]
|
||||||
|
SubtitleTrackNotFound { index: u32 },
|
||||||
|
|
||||||
|
#[error("invalid language code: {0}")]
|
||||||
|
InvalidLanguageCode(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<rusqlite::Error> for PinakesError {
|
impl From<rusqlite::Error> for PinakesError {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue