From 38158cf261f249d0c9033c24385608c5e2abfe72 Mon Sep 17 00:00:00 2001 From: Mitsuki Fukunaga Date: Fri, 22 Jul 2022 17:55:54 +1000 Subject: [PATCH] docs: add explicit `createError` import (#6050) Co-authored-by: Pooya Parsa --- docs/components/atoms/StabilityEdge.vue | 6 ++++-- docs/content/2.guide/2.features/7.error-handling.md | 8 ++++++++ docs/content/3.api/3.utils/create-error.md | 4 ++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/components/atoms/StabilityEdge.vue b/docs/components/atoms/StabilityEdge.vue index 2dc692fd24..7b22cd8d38 100644 --- a/docs/components/atoms/StabilityEdge.vue +++ b/docs/components/atoms/StabilityEdge.vue @@ -1,8 +1,10 @@ diff --git a/docs/content/2.guide/2.features/7.error-handling.md b/docs/content/2.guide/2.features/7.error-handling.md index c514237ffd..144b663d63 100644 --- a/docs/content/2.guide/2.features/7.error-handling.md +++ b/docs/content/2.guide/2.features/7.error-handling.md @@ -93,6 +93,10 @@ If you throw an error created with `createError`: ### Example +::StabilityEdge{title="Auto import of createError"} +In the current version, add `import { createError } from 'h3'` in order to use `createError`. +:: + ```vue [pages/movies/[slug].vue]