summaryrefslogtreecommitdiff
path: root/tests/unit/tls_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/tls_test.ts')
-rw-r--r--tests/unit/tls_test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/tls_test.ts b/tests/unit/tls_test.ts
index 1facd0f98..e5b9a02c3 100644
--- a/tests/unit/tls_test.ts
+++ b/tests/unit/tls_test.ts
@@ -588,7 +588,9 @@ async function receiveAlotSendNothing(conn: Deno.Conn) {
}
} catch (e) {
throw new Error(
- `Got an error (${e.message}) after reading ${nread}/${largeAmount} bytes`,
+ `Got an error (${
+ (e as Error).message
+ }) after reading ${nread}/${largeAmount} bytes`,
{ cause: e },
);
}