فهرست منبع

Reply to GitHub with context for error

Mark Rousskov 5 سال پیش
والد
کامیت
0a55ae9e95
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -146,7 +146,7 @@ async fn serve_req(req: Request<Body>, ctx: Arc<Context>) -> Result<Response<Bod
             log::error!("request failed: {:?}", err);
             return Ok(Response::builder()
                 .status(StatusCode::INTERNAL_SERVER_ERROR)
-                .body(Body::from("request failed"))
+                .body(Body::from(format!("request failed: {:?}", err)))
                 .unwrap());
         }
     }