diff options
Diffstat (limited to 'src/mongo/shell/replsettest.js')
-rw-r--r-- | src/mongo/shell/replsettest.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index 6162c81f8dc..2516b2f8fac 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -1509,9 +1509,11 @@ var ReplSetTest = function(opts) { if (!bsonBinaryEqual(oplogEntry, otherOplogEntry)) { var query = prevOplogEntry ? {ts: {$lte: prevOplogEntry.ts}} : {}; rst.nodes.forEach(node => this.dumpOplog(node, query, 100)); - assert(false, - msgPrefix + ", non-matching oplog entry for nodes: " + - firstReader.mongo.host + " " + readers[i].mongo.host); + var log = msgPrefix + + ", non-matching oplog entries for the following nodes: \n" + + firstReader.mongo.host + ": " + tojsononeline(oplogEntry) + "\n" + + readers[i].mongo.host + ": " + tojsononeline(otherOplogEntry); + assert(false, log); } } prevOplogEntry = oplogEntry; |