summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/resolve_dns.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/resolve_dns.ts')
-rw-r--r--cli/tests/testdata/resolve_dns.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/testdata/resolve_dns.ts b/cli/tests/testdata/resolve_dns.ts
index e4a50f7dc..1757c938e 100644
--- a/cli/tests/testdata/resolve_dns.ts
+++ b/cli/tests/testdata/resolve_dns.ts
@@ -38,5 +38,9 @@ console.log(JSON.stringify(txt));
try {
await Deno.resolveDns("not-found-example.com", "A", nameServer);
} catch (e) {
- console.log(`Error ${e.name} thrown for not-found-example.com`);
+ console.log(
+ `Error ${
+ e instanceof Error ? e.name : "[non-error]"
+ } thrown for not-found-example.com`,
+ );
}