Starts working on an Error flash.

This commit is contained in:
Roflin committed 2026-01-28 22:02:11 +01:00
1 parent 9d3c5afb07
commit d86d0d2f32
6 files changed
+143 -123

No files matched your search

+4 -2
View File
@@ -1,8 +1,10 @@
use diesel::result::Error;
#[derive(Debug)]
pub struct DatabaseError(pub String);
impl From<diesel::result::Error> for DatabaseError {
fn from(value: diesel::result::Error) -> Self {
impl From<Error> for DatabaseError {
fn from(value: Error) -> Self {
DatabaseError(value.to_string())
}
}