Custom exception formatter in Lighthouse PHP #2707
Replies: 1 comment
-
|
There is no option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve created my own error formatter and I’m trying to hook it up in the configuration, but it’s not being called at all. Here’s what I did:
In the
config/lighthouse.phpfile I added:My formatter looks something like this:
Could help me understand how exactly the error formatter mechanism works in Lighthouse? Maybe I’m doing something wrong in the configuration, or perhaps the formatter should implement some interface?
I would be very grateful for any hints or pointing me in the right direction where I should look for a solution.
Beta Was this translation helpful? Give feedback.
All reactions