paperplane-airbrake
An airbrake
wrapper for paperplane
.
Usage
cry :: Airbrake -> Error -> Promise Error
Constructs a cry
error-handler for paperplane
to populate the airbrake
notification with request details, similar to the built-in express
and hapi
handlers for airbrake
.
const Airbrake = const http = const mount = const airbrake = Airbrake const app = { throw 'uh oh' } const cry = airbrake http
Note: This version of paperplane-airbrake
supports paperplane
v2. For paperplane
v1, you will need paperplane-airbrake
v0.0.3. See the paperplane
migration guide for more details.