Support plan
- which support plan is this issue covered by? (e.g. Community, Core, Plus, or Enterprise): Community
- is this issue currently blocking your project? (yes/no): no
- is this issue affecting a production system? (yes/no): yes
Context
- node version: 12.14.0
- module version: found it on 7.1.0 but same issue on latest
- environment (e.g. node, browser, native): node
- used with (e.g. hapi application, another framework, standalone, ...): hapi
- any other relevant information:
How can we help?
If you throw a non system error in validateFunc it will just swallow the error and return a 401 to the client.
The 401 is ok but it would be nice to be able to get the error somehow. Just logging it with an error tag would already be great.
I could wrap my validateFunc to catch the error myself but this seems non obvious.
Support plan
Context
How can we help?
If you throw a non system error in validateFunc it will just swallow the error and return a 401 to the client.
The 401 is ok but it would be nice to be able to get the error somehow. Just logging it with an error tag would already be great.
I could wrap my validateFunc to catch the error myself but this seems non obvious.