Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export.handler = function (evt, ctx, callback) {
- Promise.resolve()
- .then(() => {
- // Unmodified handler execution
- })
- .then(koaResponse => {
- // Unmodified success handling
- })
- .catch(e => {
- if (!e) {
- console.log('A falsy error was thrown. Who would do that?', e);
- }
- callback(e);
- });
- };
- };
Add Comment
Please, Sign In to add comment