@sinet/lapin-send-error

2.0.1 • Public • Published

Lapin Send Error

Version npm Build Status Dependency Status devDependency Status

Error handling for Lapin calls. Handles fail returns without nesting, concatenates error codes.

Usage

npm install @sinet/lapin-send-error --save

Example

If you receive an error from a database query or remote lapin call easily handle it with:

const sendError = require( '@sinet/lapin-send-error' );

if ( error ) {
	return sendError( send, error, 'code' );
}

The first parameter is the send object from Lapin.

Contributing

All pull requests must follow coding conventions and standards.

/@sinet/lapin-send-error/

    Package Sidebar

    Install

    npm i @sinet/lapin-send-error

    Weekly Downloads

    0

    Version

    2.0.1

    License

    MIT

    Last publish

    Collaborators

    • nakautot
    • faith28
    • jefectba
    • darbiol