feat: DB operations can fail
This commit is contained in:
parent
dc239371e9
commit
7527ba7a09
6 changed files with 50 additions and 19 deletions
|
|
@ -2,6 +2,8 @@ use std::fmt;
|
|||
|
||||
use crate::db::UserRef;
|
||||
|
||||
pub type BoxedError = Box<dyn std::error::Error + Send + Sync + 'static>;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct UserAlreadyExists(pub UserRef);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue