abra/file_issue.rs
1use std::fmt::Debug;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5#[error(
6 "\rabra encountered a problem.
7Do you think this is a bug? File an issue at https://github.com/denisidoro/abra"
8)]
9pub struct FileAnIssue {
10 #[source]
11 source: anyhow::Error,
12}
13
14impl FileAnIssue {
15 pub fn new<SourceError>(source: SourceError) -> Self
16 where
17 SourceError: Into<anyhow::Error>,
18 {
19 FileAnIssue {
20 source: source.into(),
21 }
22 }
23}