github_workflow_lib/errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("invalid API_KEY entry: {0}")]
6 InvalidAccount(&'static str),
7
8 #[error("GitHub request to {host} failed")]
9 Request {
10 host: String,
11 #[source]
12 source: reqwest::Error,
13 },
14
15 #[error(transparent)]
16 SQLite(#[from] crate::database::errors::Error),
17}