fixed small bug checking for stack on undefined object
This commit is contained in:
@@ -44,7 +44,7 @@ function formatLogData(logData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data.forEach(function (item) {
|
data.forEach(function (item) {
|
||||||
if (item.stack) {
|
if (item && item.stack) {
|
||||||
output += item.stack;
|
output += item.stack;
|
||||||
} else {
|
} else {
|
||||||
output += util.inspect(item);
|
output += util.inspect(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user