From 25771b3d9b36a7262d42809bfbb5497ed8057780 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Sun, 10 Oct 2021 15:44:45 +0530 Subject: feat(ext/net): relevant errors for resolveDns (#12370) --- cli/tests/testdata/resolve_dns.ts | 4 ++-- cli/tests/testdata/resolve_dns.ts.out | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') 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 -- cgit v1.2.3