From 04a9cc95ac1349ab192c93c231c1ac97ee02fb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 9 Sep 2024 21:51:55 +0100 Subject: feat: Add better error messages for unstable APIs (#25519) This commit improves error messages for unstable APIs: - `--unstable-broadcast-channel` - `--unstable-cron` - `--unstable-http` - `--unstable-kv` - `--unstable-temporal` By providing information and hints what went wrong and how the error can be fixed. It reuses the same infra that was added in https://github.com/denoland/deno/pull/21764. --- tests/testdata/run/unstable_temporal_api/missing_flag.js | 1 - tests/testdata/run/unstable_temporal_api/missing_flag.out | 4 ---- 2 files changed, 5 deletions(-) delete mode 100644 tests/testdata/run/unstable_temporal_api/missing_flag.js delete mode 100644 tests/testdata/run/unstable_temporal_api/missing_flag.out (limited to 'tests/testdata/run') diff --git a/tests/testdata/run/unstable_temporal_api/missing_flag.js b/tests/testdata/run/unstable_temporal_api/missing_flag.js deleted file mode 100644 index 92aed7931..000000000 --- a/tests/testdata/run/unstable_temporal_api/missing_flag.js +++ /dev/null @@ -1 +0,0 @@ -Temporal.Now.instant(); diff --git a/tests/testdata/run/unstable_temporal_api/missing_flag.out b/tests/testdata/run/unstable_temporal_api/missing_flag.out deleted file mode 100644 index 8f8e23e70..000000000 --- a/tests/testdata/run/unstable_temporal_api/missing_flag.out +++ /dev/null @@ -1,4 +0,0 @@ -error: Uncaught (in promise) ReferenceError: Temporal is not defined -Temporal.Now.instant(); -^ - at [WILDCARD]missing_flag.js:1:1 -- cgit v1.2.3