# Pagerless for tRPC

> One adapter option. Only INTERNAL_SERVER_ERROR is reported; bad input and auth errors are your users' business, not an alert.

URL: https://pagerless.dev/integrations/trpc
Updated: 2026-10-22

## Set up

```bash
npm i pagerless
```

```ts
import { pagerlessTrpcOnError } from "pagerless/trpc";

// in your adapter options
onError: pagerlessTrpcOnError,
```

Keep your own handler too: `onError: trpcOnError(yourHandler)`.

## What it catches

- Procedures that fail with INTERNAL_SERVER_ERROR.
- Reports 5xx and crashes only, never 4xx, and leaves the response, logs and error exactly as they were.

## Questions

### Will a validation error page me?

No. Only INTERNAL_SERVER_ERROR is reported.
