Added parsing for sqlx error

This commit is contained in:
2026-09-03 02:01:49 +02:00
parent ea4dffbdc6
commit 7ef7983ee8

View File

@@ -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())
}
}