Skip to content

Commit ed9c91b

Browse files
committedFeb 8, 2017
Guard against record.err.stack not being present before assigning to msg
1 parent e9e0f7d commit ed9c91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/bunyan-stackdriver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ BunyanStackDriver.prototype._write = function write(record, encoding, callback)
9393
record = destroyCircular(record);
9494
strictJSON(record);
9595

96-
if (record.err) {
96+
if (record.err && record.err.stack) {
9797
record.message = record.err.stack;
9898
} else if (!record.message) {
9999
record.message = record.msg;

0 commit comments

Comments
 (0)
Failed to load comments.