From e3eae662f3d753141571bd132ccb199f95c745ea Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 6 Jun 2022 19:26:57 +0100 Subject: fix: Format non-error exceptions (#14604) This commit adds "Deno.core.setFormatExceptionCallback" which can be used to provide custom formatting for errors. It is useful in cases when user throws something that is non-Error (eg. a string, plain object, etc). --- cli/tests/testdata/error_cause.ts.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests/testdata/error_cause.ts.out') diff --git a/cli/tests/testdata/error_cause.ts.out b/cli/tests/testdata/error_cause.ts.out index 512ab4326..2aab020d9 100644 --- a/cli/tests/testdata/error_cause.ts.out +++ b/cli/tests/testdata/error_cause.ts.out @@ -11,5 +11,5 @@ Caused by: Error: bar at b (file:///[WILDCARD]/error_cause.ts:7:3) at c (file:///[WILDCARD]/error_cause.ts:11:3) at file:///[WILDCARD]/error_cause.ts:14:1 -Caused by: deno +Caused by: "deno" [WILDCARD] -- cgit v1.2.3