From 4e4c96bf66111c6e8ba976ed24594edf7abfcbfb Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Thu, 8 Aug 2024 15:18:33 +0900 Subject: fix(ext/fetch): include URL and error details on fetch failures (#24910) This commit improves error messages that `fetch` generates on failure. Fixes #24835 --- tests/testdata/run/fetch_async_error_stack.ts.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testdata/run') diff --git a/tests/testdata/run/fetch_async_error_stack.ts.out b/tests/testdata/run/fetch_async_error_stack.ts.out index 06d92d15a..2722cc8a7 100644 --- a/tests/testdata/run/fetch_async_error_stack.ts.out +++ b/tests/testdata/run/fetch_async_error_stack.ts.out @@ -1,4 +1,4 @@ -error: Uncaught (in promise) TypeError: client error[WILDCARD] +error: Uncaught (in promise) TypeError: error sending request for url (https://nonexistent.deno.land/): client error[WILDCARD] await fetch("https://nonexistent.deno.land/"); ^[WILDCARD] at async fetch (ext:[WILDCARD]) -- cgit v1.2.3