forked from Roflin/gamenight
Starts working on an Error flash.
This commit is contained in:
1 parent
9d3c5afb07
commit
d86d0d2f32
6 files changed
+143
-123
No files matched your search
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user