mirror of
https://github.com/Lissy93/web-check.git
synced 2025-08-09 05:04:31 +02:00
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