fix errormessage

This commit is contained in:
Dietrich 2021-04-01 10:02:12 +02:00
parent a6598ba5db
commit 0ed010b78f
Signed by: dietrich
GPG Key ID: 9F3C20C0F85DF67C

View File

@ -64,7 +64,7 @@ impl actix_web::error::ResponseError for ServerError {
match self { match self {
Self::Argonautic => HttpResponse::InternalServerError().json("Argonautica Error"), Self::Argonautic => HttpResponse::InternalServerError().json("Argonautica Error"),
Self::Database(e) => { Self::Database(e) => {
HttpResponse::InternalServerError().json(format!("Diesel Error: {:?}", e)) HttpResponse::InternalServerError().json(format!("Database Error: {:?}", e))
} }
Self::DatabaseMigration(_) => { Self::DatabaseMigration(_) => {
unimplemented!("A migration error should never be rendered") unimplemented!("A migration error should never be rendered")