dev-scope 2024.2.21

A tool to help diagnose errors, setup machines, and report bugs to authors.
Documentation
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ConfigError {
    #[error("Unable to process file. {error:?}")]
    IoError {
        #[from]
        error: std::io::Error,
    },
}

#[allow(clippy::enum_variant_names)]
#[derive(Error, Debug)]
pub enum FileCacheError {
    #[error("Unable to access filesystem to do cache operations.")]
    FsError,
    #[error("Unable to write to cache. {0:?}")]
    WriteIoError(std::io::Error),
    #[error("Error deserializing cache data. {0:?}")]
    SerializationError(serde_json::Error),
    #[error("IoError {0:?}")]
    IoError(#[from] std::io::Error),
}