Commit f73bb71f authored by Romain Courteaud's avatar Romain Courteaud

[replicate] increase error verbosity

parent 71e8158b
...@@ -1295,7 +1295,8 @@ ...@@ -1295,7 +1295,8 @@
}); });
} }
report.log(id, options.from_local ? LOG_UNEXPECTED_REMOTE_ATTACHMENT : report.log(id, options.from_local ? LOG_UNEXPECTED_REMOTE_ATTACHMENT :
LOG_UNEXPECTED_LOCAL_ATTACHMENT); LOG_UNEXPECTED_LOCAL_ATTACHMENT,
JSON.stringify(attachment_dict));
}, function (error) { }, function (error) {
if ((error instanceof jIO.util.jIOError) && if ((error instanceof jIO.util.jIOError) &&
(error.status_code === 404)) { (error.status_code === 404)) {
......
...@@ -2015,7 +2015,7 @@ ...@@ -2015,7 +2015,7 @@
}) })
.fail(function (report) { .fail(function (report) {
deepEqual(report._list, [ deepEqual(report._list, [
[report.LOG_UNEXPECTED_REMOTE_ATTACHMENT, id] [report.LOG_UNEXPECTED_REMOTE_ATTACHMENT, id, '{"foo":{}}']
]); ]);
}) })
.then(function () { .then(function () {
...@@ -2199,7 +2199,7 @@ ...@@ -2199,7 +2199,7 @@
}) })
.fail(function (report) { .fail(function (report) {
deepEqual(report._list, [ deepEqual(report._list, [
[report.LOG_UNEXPECTED_LOCAL_ATTACHMENT, id] [report.LOG_UNEXPECTED_LOCAL_ATTACHMENT, id, '{"foo":{}}']
]); ]);
}) })
.then(function () { .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