diff options
author | Randolph Tan <randolph@10gen.com> | 2013-11-18 17:33:38 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2013-11-20 16:51:14 -0500 |
commit | abe4653b2b96fada1c59916105dcd1cb89d0be2e (patch) | |
tree | 14b19587a3ca646b782119cca8c1c372ef44664f /jstests/indexapi.js | |
parent | 76dd5954e69f1a9c3b7fe38a2654b52abce6d461 (diff) | |
download | mongo-abe4653b2b96fada1c59916105dcd1cb89d0be2e.tar.gz |
SERVER-11759 errmsg is empty on sharding create index error
Diffstat (limited to 'jstests/indexapi.js')
-rw-r--r-- | jstests/indexapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/indexapi.js b/jstests/indexapi.js index 1bbdf433267..7bc5d45acd3 100644 --- a/jstests/indexapi.js +++ b/jstests/indexapi.js @@ -37,4 +37,4 @@ assert( idx[1].unique , "M3" ); //printjson( idx ); db.system.indexes.insert( { ns : "test" , key : { x : 1 } , name : "x" } ); -assert( db.getLastError().indexOf( "invalid" ) >= 0 , "Z1" ); +assert( db.getLastError() != null , "Z1" ); |