@calipsa/wrap-error Installation # using npm: npm install --save @calipsa/wrap-error # or if you like yarn: yarn add @calipsa/wrap-error Usage import wrapError from '@calipsa/wrap-error' fs.readFile('incorrect path', (err, data) => { if (err) { throw wrapError(err, 'Failed to read file') } // ... })