> For the complete documentation index, see [llms.txt](https://bmsvieira.gitbook.io/nova-irc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bmsvieira.gitbook.io/nova-irc/event-listeners/error.md).

# error

The `error`event is triggered everytime there's a error-type message from the server.

```javascript
bot.on('error', (err, raw = null) => {
    // Your code here.
});
```

#### Parameters

* **`err`***(string)* – Error message.
* **`raw`***(string)* – Raw message from the server.
