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

# display Error • TypeScript AI Agent SDK

> displayError: API reference for displayError

# displayError

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**display**](../modules/display) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def displayError(message: string, context?: DisplayContext) -> void
```

### Returns

<ResponseField name="Returns" type="void">
  The result of the operation.
</ResponseField>

## Uses

* `callback`

## Used By

* [`logError`](../functions/logError)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/display/index.ts#L91">
  `src/display/index.ts` at line 91
</Card>
