Starts working on an Error flash.
This commit is contained in:
@@ -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