0.1.6 • Published 5 years ago

@calipsa/wrap-error v0.1.6

Weekly downloads
58
License
ISC
Repository
github
Last release
5 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

5 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago