Niche Portobello Mushroom

miller-error

1.1.0 • Public • Published

miller-error

NPM version build status Test coverage

Schema validator for error objects. Built with miller.

Installation

$ npm i --save miller-error

Overview

Validate an object. Either throws a TypeError or returns the same object.

var errSchema = require('miller-error');
 
errSchema({
  error: new Error('login error'),
  message: 'Whoops, something went wrong with the login',
  statusCode: 1
});

License

MIT © Yoshua Wuyts

install

npm i miller-error

Downloadsweekly downloads

3

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability