diff options
Diffstat (limited to 'src/mongo/shell/assert.js')
-rw-r--r-- | src/mongo/shell/assert.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/shell/assert.js b/src/mongo/shell/assert.js index f50ba594a66..b9ba9fdc7d2 100644 --- a/src/mongo/shell/assert.js +++ b/src/mongo/shell/assert.js @@ -419,7 +419,7 @@ assert = (function() { // Used up all attempts msg = _buildAssertionMessage(msg); if (runHangAnalyzer) { - msg = msg + "The hang analyzer is automatically called in assert.retry functions. " + + msg = msg + " The hang analyzer is automatically called in assert.retry functions. " + "If you are *expecting* assert.soon to possibly fail, call assert.retry " + "with {runHangAnalyzer: false} as the fifth argument " + "(you can fill unused arguments with `undefined`)."; @@ -481,7 +481,8 @@ assert = (function() { "assert.time failed timeout " + timeout + "ms took " + diff + "ms : " + f + ", msg"; msg = _buildAssertionMessage(msg, msgPrefix); if (runHangAnalyzer) { - msg = msg + "The hang analyzer is automatically called in assert.time functions. " + + msg = msg + + " The hang analyzer is automatically called in assert.time functions. " + "If you are *expecting* assert.soon to possibly fail, call assert.time " + "with {runHangAnalyzer: false} as the fourth argument " + "(you can fill unused arguments with `undefined`)."; |