feat: DB operations can fail

This commit is contained in:
selfhoster selfhoster 2026-09-01 23:27:02 +02:00
commit 7527ba7a09
6 changed files with 50 additions and 19 deletions

View file

@ -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);