Skip to content

Commit

Permalink
fix: temporarily debugging an error (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizel Scarlett authored Dec 1, 2021
1 parent 06941aa commit be82e8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lambda-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ async function lambdaFunction(probot, event, context) {
body: '{"ok":true}',
};
} catch (error) {
console.log(error);
return {
...error,
statusCode: error.status || 500,
error: "ooops",
error:
error.message ||
"unhandled error in @probot/adapter-aws-lambda-serverless",
};
}
}

0 comments on commit be82e8a

Please sign in to comment.