(data: T)
| 108 | let body = ErrorBody { error: ErrorDetail { code, message, details } }; |
| 109 | (status, Json(body)).into_response() |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | impl From<sea_orm::DbErr> for AppError { |
| 114 | fn from(err: sea_orm::DbErr) -> Self { |
| 115 | tracing::error!("Database error: {err}"); |
no outgoing calls