Skip to content

Commit be82e8a

Browse files
author
Rizel Scarlett
authored
fix: temporarily debugging an error (#85)
1 parent 06941aa commit be82e8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lambda-function.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ async function lambdaFunction(probot, event, context) {
2626
body: '{"ok":true}',
2727
};
2828
} catch (error) {
29+
console.log(error);
2930
return {
31+
...error,
3032
statusCode: error.status || 500,
31-
error: "ooops",
33+
error:
34+
error.message ||
35+
"unhandled error in @probot/adapter-aws-lambda-serverless",
3236
};
3337
}
3438
}

0 commit comments

Comments
 (0)