> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# error-logged-without-stack

> A catch block logs only error.message and carries on, so the stack trace is lost.

## What it flags

A `catch (err)` block that reads `err` only as `err.message` inside a `console` or logger `error`/`fatal` call, and neither rethrows nor exits, loses the stack and any `cause`. Log the error object itself. A block that also reads `err.code`, `err.stack` or passes `err` on is skipped.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "error-logged-without-stack": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.