> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meridian.surf/llms.txt
> Use this file to discover all available pages before exploring further.

# Error handler

> Runs when this command throws or fails.

The Error handler sits beside your Command block and runs when any block in the command flow throws or fails at runtime.

This block is placed automatically by the builder. You cannot add it from the block palette.

## What it does

Gives you a dedicated branch for custom failure messages, logging, or recovery steps. If you disable it, Meridian shows the built-in flow error card in Discord instead.

## Common uses

* **Friendly errors** — Send a custom embed explaining what went wrong instead of a generic card.
* **Staff alerts** — Mirror errors to a Discord webhook for your moderation or dev channel.
* **Silent failures** — Hide error details from regular members while still notifying owners.

## Configuration

Open the block in the builder sidebar to configure these fields.

### `disable_error_handler`

**Type:** `boolean`.

When on, failures skip blocks under this anchor and only show the built-in flow error card.

### `errors_visible_owner_cowork_only`

**Type:** `boolean`.

Hides flow error messages from everyone except the bot owner and coworkers with builder access.

### `error_webhook_enabled`

**Type:** `boolean`.

Post a copy of each error to a Discord webhook URL.

### `error_webhook_url`

**Type:** `string`.

Webhook URL. Required when webhook delivery is enabled.

### `error_webhook_username`

**Type:** `string`.

Optional display name for webhook messages.

## Tips

* Connect a Send a Message block under the Error handler to explain failures in plain language.

## See also

* [Command flow](/builder/action-blocks/command-flow) — Browse all blocks in the Command flow category.
