# Send an error log message

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F3QjLziEwgftQ4VjbS8Iz%2Fimage.png?alt=media&#x26;token=8ca3f0ac-6f85-4baa-8b41-c3bfb1681fd0" 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](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FtGfrBfA7knA2YgX7E0iv%2Fimage_2024-05-30_152316958.png?alt=media&#x26;token=6eecf8ea-c3fb-4b30-b9ef-4160dc9b6d29" 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](https://botghost.com/docs/custom-commands-and-events/variables) can be used as well.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fap5oiDLRy9MYfkyhivsh%2Fimage_2024-05-30_153039341.png?alt=media&#x26;token=4e2099d0-a62a-4313-a4e0-08014bdb3510" 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](https://botghost.com/docs/custom-commands-and-events/variables) may be used.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FikfOhwvr9z0ahgDN009V%2Fimage_2024-05-30_153146538.png?alt=media&#x26;token=605d5a94-445c-4521-80b4-d2c48d09f29d" alt=""><figcaption></figcaption></figure>
