From 10474f35f61ef7abe0aaa7fb9fa9af2b6189e6c3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 8 Mar 2022 18:17:34 +0200 Subject: [PATCH] net.http: clarify error message in Request.ssl_do --- vlib/net/http/backend_nix.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/net/http/backend_nix.c.v b/vlib/net/http/backend_nix.c.v index 77d442a2ad..10285a798c 100644 --- a/vlib/net/http/backend_nix.c.v +++ b/vlib/net/http/backend_nix.c.v @@ -80,7 +80,7 @@ fn (req &Request) ssl_do(port int, method Method, host_name string, path string) res = C.SSL_set_tlsext_host_name(voidptr(ssl), host_name.str) res = C.BIO_do_connect(web) if res != 1 { - return error('http: openssl: BIO_do_connect failed, res: $res') + return error('http: openssl: BIO_do_connect failed, res: $res (potential network issue?)') } res = C.BIO_do_handshake(web) pcert := C.SSL_get_peer_certificate(voidptr(ssl))