diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-05 15:22:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 15:22:31 +0200 |
commit | 15fce5b290d7dc3eb503a70bd8a10aaf72a09f5e (patch) | |
tree | a236e2de82f91b8a36cb5228db119f116fe05c06 /tests/testdata | |
parent | b54347c448ca4a003b81800655eb1433fc842b2a (diff) |
feat(check): turn on useUnknownInCatchVariables (#25465)
Part of #25162
Closes #11826
Diffstat (limited to 'tests/testdata')
-rw-r--r-- | tests/testdata/run/resolve_dns.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |