Skip to content

Commit

Permalink
Log errors when TLS fails (#484)
Browse files Browse the repository at this point in the history
This error gets lost when TLS enforcement is true.
  • Loading branch information
stea-uw authored Aug 29, 2024
1 parent 2606e50 commit 1c2ffd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connection/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1c2ffd4

Please sign in to comment.