From 1c2ffd47225bd1beb5a54a2b56913c48115bd552 Mon Sep 17 00:00:00 2001 From: Stea <147100792+stea-uw@users.noreply.github.com> Date: Thu, 29 Aug 2024 05:40:35 -0700 Subject: [PATCH] Log errors when TLS fails (#484) This error gets lost when TLS enforcement is true. --- connection/connection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connection/connection.ts b/connection/connection.ts index 7ce3d38..bc5d9cf 100644 --- a/connection/connection.ts +++ b/connection/connection.ts @@ -393,7 +393,8 @@ export class Connection { if (e instanceof Deno.errors.InvalidData && tls_enabled) { if (tls_enforced) { throw new Error( - "The certificate used to secure the TLS connection is invalid.", + "The certificate used to secure the TLS connection is invalid: " + + e.message, ); } else { console.error(