diff --git a/compute_tools/src/http/api.rs b/compute_tools/src/http/api.rs index b70c1ac802..83e95652b2 100644 --- a/compute_tools/src/http/api.rs +++ b/compute_tools/src/http/api.rs @@ -119,7 +119,7 @@ async fn routes(req: Request, compute: &Arc) -> Response Response::new(Body::from("true")), Err(e) => { error!("install_extension failed: {}", e); - Response::new(Body::from(e.to_string())) + render_json_error(&e.to_string(), StatusCode::INTERNAL_SERVER_ERROR) } } }