Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fixed error message code for HB translate helper (#15529)
closes: #15500 - Per the issue, Ghost has a policy to never throw 500 Internal Server errors for theme issues. This change adds a check inside of `ghost\core\core\frontend\helpers\t.js` if `text` or `options` is undefined, to throw an `IncorrectUsageError` error within the function. - Messaging was borrowed from `ghost\core\core\frontend\web\middleware\error-handler.js`.
- Loading branch information