Ghost/ghost/errors
Sam Lord d8ee09d0fa @tryghost/errors Add stack related functions
refs: https://github.com/TryGhost/Toolbox/issues/147

Correctly prepares the stack when wrapping another error, and adds a new method on errors to create an error which can be shown to the user (i.e. remove the stack trace in production)
2021-12-01 17:28:42 +00:00
..
lib @tryghost/errors Add stack related functions 2021-12-01 17:28:42 +00:00
test @tryghost/errors Add stack related functions 2021-12-01 17:28:42 +00:00
.eslintrc.js Remove trailing commas from .eslintrc.js files 2020-08-04 14:48:07 +01:00
index.js Updated paths & tests to work in new pkg structure 2020-03-25 10:24:33 +00:00
LICENSE 2021 2021-01-25 16:20:43 +00:00
package.json Published new versions 2021-11-30 17:12:21 +00:00
README.md 2021 2021-01-25 16:20:43 +00:00

Errors

Install

npm install @tryghost/errors --save

or

yarn add @tryghost/errors

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.