Updates lambda functions with more robust err handling
This commit is contained in:
@@ -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 }),
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user