summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2021-10-10 15:44:45 +0530
committerGitHub <noreply@github.com>2021-10-10 15:44:45 +0530
commit25771b3d9b36a7262d42809bfbb5497ed8057780 (patch)
tree47a41c2cb3b32b094ea9ca833c8bc28a3808ccb0 /cli/tests
parent66804d26f3c12849c7fef9c7a27cb7beff5e3709 (diff)
feat(ext/net): relevant errors for resolveDns (#12370)
Diffstat (limited to 'cli/tests')
-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