Custom error handleError for the script crash on unhandled rejections.
npm install customize-unhandled-error
yarn add customize-unhandled-error
import unhandledError from 'customize-unhandled-error'
// Promise.reject(new Error('THIS_IS_UNHANDLED'));
unhandledError();
- MIT © cslam07