mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-01 03:12:15 +00:00
Improve TLS error message
This commit is contained in:
parent
225db64240
commit
1356ef809b
@ -132,7 +132,7 @@ macro_rules! make_grpc_client {
|
|||||||
|
|
||||||
make_client
|
make_client
|
||||||
.make_service(())
|
.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| {
|
.and_then(move |conn| {
|
||||||
let conn = tower_request_modifier::Builder::new()
|
let conn = tower_request_modifier::Builder::new()
|
||||||
.set_origin(uri)
|
.set_origin(uri)
|
||||||
|
Loading…
Reference in New Issue
Block a user