diff options
-rw-r--r-- | jstests/hooks/validate_collections.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/hooks/validate_collections.js b/jstests/hooks/validate_collections.js index 29ba74e46cc..0575bfdf532 100644 --- a/jstests/hooks/validate_collections.js +++ b/jstests/hooks/validate_collections.js @@ -103,8 +103,9 @@ function CollectionValidator() { const dbNames = conn.getDBNames(); for (let dbName of dbNames) { - if (!validatorFunc(conn.getDB(dbName), {full: true})) { - return {ok: 0, host: host}; + const validateRes = validatorFunc(conn.getDB(dbName), {full: true}); + if (validateRes.ok !== 1) { + return {ok: 0, host: host, validateRes: validateRes}; } } return {ok: 1}; |