1 2 3 4 5 6 7 8 9 10
use crate::file_store::errors::StoreError; /// Why reading files failed. #[derive(Debug, thiserror::Error)] pub enum FilesError { #[error(transparent)] Store(#[from] StoreError), #[error("{key}: {reason}")] File { key: String, reason: String }, }