소스 검색

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());
         }
     }