From cafecdc5329bfbe74d79939e36f4df33f9ae4191 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 12 Jan 2025 22:32:05 -0600 Subject: [PATCH] polish --- src/content/docs/v4/reference/error-handling.mdx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/content/docs/v4/reference/error-handling.mdx b/src/content/docs/v4/reference/error-handling.mdx index 5f17dc162..75a3e3cbc 100644 --- a/src/content/docs/v4/reference/error-handling.mdx +++ b/src/content/docs/v4/reference/error-handling.mdx @@ -7,7 +7,7 @@ sidebar: Error handling is important in any application, especially one which has a long lifetime of running. -## Handling errors in command and event modules. +## Handling errors in command and event modules To capture errors, enable the 'error' event in sern's global event manager. @@ -24,12 +24,14 @@ import { FileTree } from '@astrojs/starlight/components'; -::: tip +:::tip + Don't forget to enable event handling! ```js title='src/config.js' - export const events = "./dist/events" +export const events = "./dist/events" ``` -::: + +:: ```js