diff --git a/src/error.rs b/src/error.rs index 238ddb4..afdf96e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -34,3 +34,9 @@ impl From for AppError { AppError::InternalError(value.to_string()) } } + +impl From for AppError { + fn from(value: sqlx::Error) -> Self { + AppError::InternalError(value.to_string()) + } +}