mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -05:00

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
265 B
Text
7 lines
265 B
Text
error: Uncaught (in promise) TypeError: Deno.openKv is not a function
|
|
const db = await Deno.openKv();
|
|
^
|
|
at [WILDCARD]kv.ts:1:23
|
|
|
|
info: Deno.openKv() is an unstable API.
|
|
hint: Run again with `--unstable-kv` flag to enable this API.
|