Skip to main content

rust_releases_rust_changelog/
error.rs

1use crate::changelog::ChangelogError;
2
3#[derive(Debug, thiserror::Error)]
4#[non_exhaustive]
5pub enum RustChangelogError<E> {
6    #[error("Failed to fetch the Rust changelog from '{url}': {source}")]
7    Fetch {
8        url: String,
9        #[source]
10        source: E,
11    },
12
13    #[error("Failed to parse the Rust changelog fetched from '{url}': {source}")]
14    Parse {
15        url: String,
16        #[source]
17        source: ChangelogError,
18    },
19}