# Send an error log message

<figure><img src="/files/USdAFHtu73HWRzQURGIO" alt=""><figcaption></figcaption></figure>

The Send an error log message action once triggered, will send a an error message to the error handler to be dealt with or will be sent directly to the bots error logs. It is useful for checking elses on conditions and so forth.

## Module

Here you can enter the module that the error message has been sent from. (Ex. Timeout Command)\
[Variables](/custom-commands-and-events/variables.md) can be used in this field.

<figure><img src="/files/rARvY2HeDCBCz33s12kG" alt=""><figcaption></figcaption></figure>

## Action

This field is where you can edit which action is tied to the error log message that the bot failed to execute. [Variables](/custom-commands-and-events/variables.md) can be used as well.

<figure><img src="/files/G18NOK3rCmu8a5AhCwlI" alt=""><figcaption></figcaption></figure>

## Reason

The reason field is self explanatory and is where you shall input the reason of why the block execution failed. [Variables](/custom-commands-and-events/variables.md) may be used.

<figure><img src="/files/nX8MYGxxrNsNispvVKJ1" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.botghost.com/custom-commands-and-events/actions/other-actions/send-an-error-log-message.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
