mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
b14b44faa4
Ref: https://linear.app/tryghost/issue/ENG-1526/errors-from-members-api-routercontroller-are-being-lost The try/catch/re-throw pattern, that hides errors, is used throughout the RouterController.js file. I have not changed the try/catch/re-throw pattern because it helps in sending clean messages to the users. We may not want to return internal errors as API responses. I have added logs and Sentry messages that will help us debug without losing error messages. |
||
---|---|---|
.. | ||
controllers | ||
repositories | ||
services | ||
members-api.js |