# format_ask_user_error_answer

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_ask_user_types/format_ask_user_error_answer)

Render the placeholder answer recorded for every question on failure.

## Signature

```python
format_ask_user_error_answer(
    detail: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `detail` | `str` | Yes | Human-readable reason the prompt failed. |

## Returns

`str`

The `(error: <detail>)` placeholder.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/_ask_user_types.py#L556)