summaryrefslogtreecommitdiff
path: root/jstests/slow1
diff options
context:
space:
mode:
authordaveh86 <howsdav@gmail.com>2014-05-14 19:43:38 -0400
committerBenety Goh <benety@mongodb.com>2014-05-22 09:17:09 -0400
commit0e224f9a0fe0a37ee2b22c0a0ba20ec2a1f48aeb (patch)
tree4e7cbbd2f720c6e21a35b8d1b4d493522fbd8291 /jstests/slow1
parent885e11b64dae39b4a90304e754caa26254442180 (diff)
downloadmongo-0e224f9a0fe0a37ee2b22c0a0ba20ec2a1f48aeb.tar.gz
SERVER-10177 Remove all Js instances of "throw 'string';" with "throw Error();"
Includes both the initial patch to remove all throws and patches for all failing tests Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'jstests/slow1')
-rw-r--r--jstests/slow1/sharding_multiple_collections.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/slow1/sharding_multiple_collections.js b/jstests/slow1/sharding_multiple_collections.js
index 7c2cb1720cf..6577e0050fa 100644
--- a/jstests/slow1/sharding_multiple_collections.js
+++ b/jstests/slow1/sharding_multiple_collections.js
@@ -27,7 +27,7 @@ function mytest( coll , i , loopNumber ){
x = coll.find( { _id : i } ).explain();
if ( x )
return;
- throw "can't find " + i + " in " + coll.getName() + " on loopNumber: " + loopNumber + " explain: " + tojson( x );
+ throw Error( "can't find " + i + " in " + coll.getName() + " on loopNumber: " + loopNumber + " explain: " + tojson( x ) );
}
loopNumber = 0