use crate::storage::StorageError; use thiserror::Error; #[derive(Debug, Error)] pub enum Error { #[error("database: {0}")] Storage(#[from] StorageError), #[error("I/O: {0}")] Io(#[from] std::io::Error), #[error("task panicked: {0}")] TaskPanic(#[from] tokio::task::JoinError), #[error(transparent)] Resync(#[from] crate::sync::resync::ResyncError), #[error("collection mortality: {0}")] MstMortality(#[from] crate::mst::mortality::MstMortalityError), #[error("{0}")] Other(String), } pub type Result = std::result::Result;