> ## 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 • AI Agent SDK

> display_error: API reference for display_error

# display\_error

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

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

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def display_error(message: str, console: Any) -> Any
```

## Parameters

<ParamField query="message" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="console" type="Any" required={false}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `Console`
* `execute_sync_callback`
* `Panel.fit`
* `Text`

## Used By

* [`AgentTeam.aexecute_task`](../functions/AgentTeam-aexecute_task)
* [`AgentTeam.arun_task`](../functions/AgentTeam-arun_task)
* [`AgentTeam.save_output_to_file`](../functions/AgentTeam-save_output_to_file)
* [`AgentTeam.execute_task`](../functions/AgentTeam-execute_task)
* [`AgentTeam.run_task`](../functions/AgentTeam-run_task)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/main.py#L386">
  `praisonaiagents/main.py` at line 386
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Display System" icon="display" href="/docs/features/display-system" />

  <Card title="Display Callbacks" icon="phone" href="/docs/features/display-callbacks" />

  <Card title="Output Styles" icon="palette" href="/docs/features/output-styles" />
</CardGroup>
