Added parsing for sqlx error
This commit is contained in:
@@ -34,3 +34,9 @@ impl From<tower_sessions::session::Error> for AppError {
|
|||||||
AppError::InternalError(value.to_string())
|
AppError::InternalError(value.to_string())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<sqlx::Error> for AppError {
|
||||||
|
fn from(value: sqlx::Error) -> Self {
|
||||||
|
AppError::InternalError(value.to_string())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user