0.1.6 • Published 4 years ago

@calipsa/wrap-error v0.1.6

Weekly downloads
58
License
ISC
Repository
github
Last release
4 years ago

@calipsa/wrap-error

NPM version Downloads Dependency status Dev Dependency status

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')
  }
  // ...
})
0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago