fixed small bug checking for stack on undefined object

This commit is contained in:
Gareth Jones 2011-07-20 19:39:54 +10:00
parent aac8ca0eb0
commit d0b4563ba0

View File

@ -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);