Skip to content

Commit

Permalink
make release
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Jan 16, 2025
1 parent 34857fc commit 809d29c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/6/digging-deeper/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ Client-safe errors are assumed to be something that:

Thus, they are typically not actionable for server developers.

However, you can choose to report client-safe errors by replacing `Nuwave\Lighthouse\Execution\ReportingErrorHandler`
with `Nuwave\Lighthouse\Execution\AlwaysReportingErrorHandler` in the `lighthouse.php` config:

```diff
'error_handlers' => [
- Nuwave\Lighthouse\Execution\ReportingErrorHandler::class,
+ Nuwave\Lighthouse\Execution\AlwaysReportingErrorHandler::class,
],
```

`Nuwave\Lighthouse\Execution\AlwaysReportingErrorHandler` reports all errors through the default Laravel exception handler, regardless of client-safety.

## Additional Error Information

The interface [`GraphQL\Error\ProvidesExtensions`](https://github.com/webonyx/graphql-php/blob/master/src/Error/ProvidesExtensions.php)
Expand Down

0 comments on commit 809d29c

Please sign in to comment.