Skip to content

Commit b46a709

Browse files
author
Amoki
committed
add changes
1 parent 4ae91ca commit b46a709

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/helpers/hydrater.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = function(hydraterFunction, childs, logger, errLogger) {
5353
cleaner.called = true;
5454
if(err) {
5555
var extra = JSON.parse(JSON.stringify(task));
56+
extra.changes = changes;
5657
extra.stdout = stdout;
5758
extra.stderr = stderr;
5859

@@ -195,6 +196,7 @@ module.exports = function(hydraterFunction, childs, logger, errLogger) {
195196
function logErrors(cb) {
196197
if(err) {
197198
var extra = JSON.parse(JSON.stringify(task));
199+
extra.changes = changes;
198200
logError(err, extra);
199201
errLogger("ERR hydrating " + ((task.file_path) ? task.file_path : task.document.id), err.toString());
200202
}
@@ -224,6 +226,7 @@ module.exports = function(hydraterFunction, childs, logger, errLogger) {
224226
/* istanbul ignore next */
225227
if(internalErr) {
226228
var extra = JSON.parse(JSON.stringify(task));
229+
extra.changes = changes;
227230
logError(internalErr, extra);
228231
errLogger("INTERNAL ERR", internalErr);
229232
}

0 commit comments

Comments
 (0)