@financial-times/n-lambda
v1.2.2
Published
Like n-express, but for λ
Downloads
15
Maintainers
Keywords
Readme
n-lambda
Like n-express, but for λ
Usage
'use strict';
var λ = require('@financial-times/n-lambda');
exports.handle = λ(function(event) {
return somethingThatReturnsAPromise()
.catch(function(err) {
if (/* err is a server (rather than a user) error */) {
λ.raven.captureError(err);
}
return Promise.reject(err);
});
});