From 2daa1e4395288c4a9eb02589086121569e6888ff Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 20 Mar 2026 12:44:16 +0300 Subject: [PATCH] pinakes-core: add error variants for external tool calls and subtitle ops Signed-off-by: NotAShelf Change-Id: I9c9f4a7de065e176e16b108411c3d44b6a6a6964 --- crates/pinakes-core/src/error.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/pinakes-core/src/error.rs b/crates/pinakes-core/src/error.rs index c987dc6..7e43726 100644 --- a/crates/pinakes-core/src/error.rs +++ b/crates/pinakes-core/src/error.rs @@ -111,6 +111,15 @@ pub enum PinakesError { #[error("serialization error: {0}")] 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 for PinakesError {