Updates lambda functions with more robust err handling

This commit is contained in:
Alicia Sykes
2023-07-09 23:23:50 +01:00
parent e37474e0d4
commit 9f06802a50
13 changed files with 203 additions and 167 deletions

View File

@ -21,7 +21,7 @@ exports.handler = async function(event, context) {
} catch (error) {
return {
statusCode: 500,
body: JSON.stringify({ message: error.message }),
body: JSON.stringify({ error: error.message }),
};
}
};