mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 14:24:48 -05:00
04a9cc95ac
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.
7 lines
240 B
Text
7 lines
240 B
Text
error: Uncaught (in promise) ReferenceError: Temporal is not defined
|
|
Temporal.Now.instant();
|
|
^
|
|
at [WILDCARD]temporal.ts:1:1
|
|
|
|
info: Temporal is an unstable API.
|
|
hint: Run again with `--unstable-temporal` flag to enable this API.
|