Skip to content

Commit

Permalink
feat(CB2-12012): change log from body to message
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Searle committed Oct 10, 2024
1 parent d4fa587 commit aa12d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const handler = async (
callback(null, 'Data processed successfully.');
} catch (error) {
if (error.body) {
logger.error(JSON.stringify(error.body));
logger.error(JSON.stringify(error.message));
callback(
null,
`Data processed unsuccessfully: ${JSON.stringify(error.body)}`,
`Data processed unsuccessfully: ${JSON.stringify(error.message)}`,
);
} else {
logger.error(error);
Expand Down

0 comments on commit aa12d6e

Please sign in to comment.