From be82e8ae3147378885a2f4e6d5681cac94f45d73 Mon Sep 17 00:00:00 2001 From: Rizel Scarlett Date: Wed, 1 Dec 2021 16:24:18 -0500 Subject: [PATCH] fix: temporarily debugging an error (#85) --- lambda-function.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lambda-function.js b/lambda-function.js index f4067c6..5bf3b8d 100644 --- a/lambda-function.js +++ b/lambda-function.js @@ -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", }; } }