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", }; } }