Skip to content

Commit 27f70f7

Browse files
Merge pull request #405 from jgilbert01/fix-logerr-issue
Fix issue with logErr when error is unhandled and does not contain a uow
2 parents 8772eef + 8cf3e68 commit 27f70f7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-lambda-stream",
3-
"version": "1.0.33",
3+
"version": "1.0.34",
44
"description": "Create stream processors with AWS Lambda functions.",
55
"keywords": [
66
"aws",

src/faults/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const logErr = (err) => {
8787
console.error(JSON.stringify({
8888
errorMessage: err.message,
8989
errorType: err.name,
90-
pipeline: err.uow.pipeline || 'undefined',
90+
pipeline: err.uow?.pipeline || 'undefined',
9191
handled: err.uow !== undefined,
9292
retryable: err.retryable,
9393
stackTrace: err.stack,

0 commit comments

Comments
 (0)