pidge-core 0.3.1

Core types for the pidge CLI: accounts, configuration, normalized message model
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error type for `pidge-core`.

use thiserror::Error;

#[derive(Debug, Error)]
pub enum CoreError {
    #[error("config I/O: {0}")]
    Io(#[from] std::io::Error),

    #[error("config parse: {0}")]
    Parse(#[from] serde_yaml::Error),

    #[error("unknown account: {email}")]
    UnknownAccount { email: String },

    #[error("config directory unavailable on this platform")]
    NoConfigDir,
}