Commit f73bb71f authored by Romain Courteaud's avatar Romain Courteaud

[replicate] increase error verbosity

parent 71e8158b
......@@ -1295,7 +1295,8 @@
});
}
report.log(id, options.from_local ? LOG_UNEXPECTED_REMOTE_ATTACHMENT :
LOG_UNEXPECTED_LOCAL_ATTACHMENT);
LOG_UNEXPECTED_LOCAL_ATTACHMENT,
JSON.stringify(attachment_dict));
}, function (error) {
if ((error instanceof jIO.util.jIOError) &&
(error.status_code === 404)) {
......
......@@ -2015,7 +2015,7 @@
})
.fail(function (report) {
deepEqual(report._list, [
[report.LOG_UNEXPECTED_REMOTE_ATTACHMENT, id]
[report.LOG_UNEXPECTED_REMOTE_ATTACHMENT, id, '{"foo":{}}']
]);
})
.then(function () {
......@@ -2199,7 +2199,7 @@
})
.fail(function (report) {
deepEqual(report._list, [
[report.LOG_UNEXPECTED_LOCAL_ATTACHMENT, id]
[report.LOG_UNEXPECTED_LOCAL_ATTACHMENT, id, '{"foo":{}}']
]);
})
.then(function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment