Capture error stack on node.error

Closes #879
This commit is contained in:
Nick O'Leary
2016-06-12 11:07:05 +01:00
parent 4dc9c7714c
commit 945fbbc065
2 changed files with 8 additions and 1 deletions

View File

@@ -247,6 +247,9 @@ function Flow(global,flow) {
count: count
}
};
if (logMessage.hasOwnProperty('stack')) {
errorMessage.error.stack = logMessage.stack;
}
targetCatchNode.receive(errorMessage);
handled = true;
});