File size: 606 Bytes
1851bae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/// Errors produced by the `forge_config` crate.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Failed to read or parse configuration from a file or environment.
    #[error("Config error: {0}")]
    Config(#[from] config::ConfigError),

    /// Failed to serialize or write configuration.
    #[error("Serialization error: {0}")]
    Serialization(#[from] toml_edit::ser::Error),

    /// An I/O error occurred while reading or writing configuration files.
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),

    #[error("JSON error: {0}")]
    Serde(#[from] serde_json::Error),
}