popo-cli 0.1.0

Popocatépetl volcano monitoring CLI and library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

#[derive(Debug, Error)]
pub enum PopoError {
    #[error("Network error: {0}")]
    Network(#[from] reqwest::Error),

    #[error("No report found for date {0}")]
    NotFound(chrono::NaiveDate),

    #[error("Failed to parse report: {0}")]
    Parse(String),

    #[error("Failed to select element: {0}")]
    Selector(String),
}

pub type Result<T> = std::result::Result<T, PopoError>;