mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
10e97cad23
- in the event we get an unknown error bubble up, we don't handle the templating on the error name - `@tryghost/tpl` throws an error because we pass an undefined string: `Cannot read properties of undefined (reading 'replace')` - this commit adds handling to fallback to a different user message in that event so we don't cause a 500 error |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
Mw Error Handler
Install
npm install @tryghost/mw-error-handler --save
or
yarn add @tryghost/mw-error-handler
Usage
Develop
This is a mono repository, managed with lerna.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Run
yarn dev
Test
yarn lint
run just eslintyarn test
run lint and tests
Copyright & License
Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.