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:
raf 2026-03-20 12:44:16 +03:00
commit 2daa1e4395
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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 {