From d0b4563ba0be87b69de8a3b454bb6ea589f4261e Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 20 Jul 2011 19:39:54 +1000 Subject: [PATCH] fixed small bug checking for stack on undefined object --- lib/layouts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/layouts.js b/lib/layouts.js index 3a77aa0..d66daed 100644 --- a/lib/layouts.js +++ b/lib/layouts.js @@ -44,7 +44,7 @@ function formatLogData(logData) { } data.forEach(function (item) { - if (item.stack) { + if (item && item.stack) { output += item.stack; } else { output += util.inspect(item);