From 15fce5b290d7dc3eb503a70bd8a10aaf72a09f5e Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 5 Sep 2024 15:22:31 +0200 Subject: feat(check): turn on useUnknownInCatchVariables (#25465) Part of #25162 Closes #11826 --- tests/testdata/run/resolve_dns.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/testdata') diff --git a/tests/testdata/run/resolve_dns.ts b/tests/testdata/run/resolve_dns.ts index a2d0fd046..163a68f33 100644 --- a/tests/testdata/run/resolve_dns.ts +++ b/tests/testdata/run/resolve_dns.ts @@ -67,7 +67,7 @@ try { // @ts-ignore testing invalid overloads await Deno.resolveDns("example.com", "SSHFP", nameServer); } catch (e) { - console.log(e.message); + console.log((e as Error).message); } try { @@ -78,7 +78,7 @@ try { signal: ac.signal, }); } catch (e) { - console.log(e.name); + console.log((e as Error).name); } try { @@ -89,5 +89,5 @@ try { signal: ac.signal, }); } catch (e) { - console.log(e.name); + console.log((e as Error).name); } -- cgit v1.2.3