Store more commit info in db
This commit is contained in:
parent
0f3cf296f1
commit
0d3cd15b03
9 changed files with 82 additions and 43 deletions
|
|
@ -8,6 +8,12 @@ use axum::{
|
|||
/// Wrapper around [`anyhow::Error`] that implements additional type classes.
|
||||
pub struct Error(pub anyhow::Error);
|
||||
|
||||
impl Error {
|
||||
pub fn from_box(err: Box<dyn error::Error + Send + Sync + 'static>) -> Self {
|
||||
Self(anyhow::anyhow!(err))
|
||||
}
|
||||
}
|
||||
|
||||
impl<E> From<E> for Error
|
||||
where
|
||||
E: error::Error + Send + Sync + 'static,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue