// Re-export ZdbError for convenience pub use mdx::{ZdbError, Result}; // Type alias for backward compatibility pub type MdictAppError = ZdbError; /// Helper trait for converting Result to Result /// Used by Tauri commands to convert errors to strings pub trait IntoStringResult { fn into_string_result(self) -> std::result::Result; } impl IntoStringResult for Result { fn into_string_result(self) -> std::result::Result { self.map_err(|e| crate::error_printer::format_error(&e)) } }