Skip to content

Commit

Permalink
Added Error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavanya0513 committed Apr 11, 2024
1 parent d0c98f5 commit 2e773e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lambda/utils.js
Expand Up @@ -558,6 +558,7 @@ module.exports.extractDurationFromJSON = (log) => {
try {
return JSON.parse(line);
} catch (e) {
console.error(`Detected invalid JSON line: ${line}`);
return '';
}
});
Expand Down

0 comments on commit 2e773e2

Please sign in to comment.