Let you customize error handle for Node CLI
npm install erro-handle-cli
yarn add error-handle-cli
import handleError = from 'error-handle-cli';
const [err, res] = await somePromise();
handleError(`Failed to build resources`, err);
Type: string
Heading of the error message.
Type: error/object
Type: boolean
Default: true
(optional)
Display the error message or not.
Type: boolean
Default: true
(optional)
Exit the CLI on error or not?
- MIT © cslam07