summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/resolve_dns.ts4
-rw-r--r--cli/tests/testdata/resolve_dns.ts.out2
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/testdata/resolve_dns.ts b/cli/tests/testdata/resolve_dns.ts
index d765e0536..e4a50f7dc 100644
--- a/cli/tests/testdata/resolve_dns.ts
+++ b/cli/tests/testdata/resolve_dns.ts
@@ -37,6 +37,6 @@ console.log(JSON.stringify(txt));
try {
await Deno.resolveDns("not-found-example.com", "A", nameServer);
-} catch (_e) {
- console.log("Error thrown for not-found-example.com");
+} catch (e) {
+ console.log(`Error ${e.name} thrown for not-found-example.com`);
}
diff --git a/cli/tests/testdata/resolve_dns.ts.out b/cli/tests/testdata/resolve_dns.ts.out
index 78381e6c6..8b378ce71 100644
--- a/cli/tests/testdata/resolve_dns.ts.out
+++ b/cli/tests/testdata/resolve_dns.ts.out
@@ -14,4 +14,4 @@ SRV
[{"priority":0,"weight":100,"port":1234,"target":"srv.com."}]
TXT
[["foo","bar"]]
-Error thrown for not-found-example.com
+Error NotFound thrown for not-found-example.com