Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c18098cb8a | ||
|
|
2bad759547 |
+1
-1
@@ -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!("Database Error: {:?}", e))
|
HttpResponse::InternalServerError().json(format!("Diesel Error: {:?}", e))
|
||||||
}
|
}
|
||||||
Self::DatabaseMigration(_) => {
|
Self::DatabaseMigration(_) => {
|
||||||
unimplemented!("A migration error should never be rendered")
|
unimplemented!("A migration error should never be rendered")
|
||||||
|
|||||||
Reference in New Issue
Block a user