Return database error so I can actually debug this

This commit is contained in:
Geometrically
2021-01-28 11:15:29 -07:00
parent 257c16690a
commit f887f5dca3

View File

@@ -90,7 +90,7 @@ pub enum ApiError {
EnvError(#[from] dotenv::Error),
#[error("Error while uploading file")]
FileHostingError(#[from] FileHostingError),
#[error("Internal server error")]
#[error("Internal server error: {0}")]
DatabaseError(#[from] crate::database::models::DatabaseError),
#[error("Deserialization error: {0}")]
JsonError(#[from] serde_json::Error),