From 1356ef809b1c25cbd4bb3d6a99929fff092346a5 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 9 Oct 2019 11:39:51 -0700 Subject: [PATCH] Improve TLS error message --- src/grpcconnector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grpcconnector.rs b/src/grpcconnector.rs index 66a0f2d..03bef21 100644 --- a/src/grpcconnector.rs +++ b/src/grpcconnector.rs @@ -132,7 +132,7 @@ macro_rules! make_grpc_client { make_client .make_service(()) - .map_err(|e| { format!("HTTP/2 connection failed; err={:?}", e) }) + .map_err(|e| { format!("HTTP/2 connection failed; err={:?}.\nIf you're connecting to a local server, please pass --dangerous to trust the server without checking its TLS certificate", e) }) .and_then(move |conn| { let conn = tower_request_modifier::Builder::new() .set_origin(uri)