This example refers to the article on npmawesome.com about verror
.
git clone https://github.com/npmawesome/example-verror.git
cd example-verror
npm install
npm start
The index.js contains the example from the article. When executing npm start
you will see an expected error which demonstrates the object mapping of several messages.