summaryrefslogtreecommitdiff
path: root/jstests/error3.js
blob: 9f7f298cb5eba6c9bf56b400beb887b97a235fcc (plain)
1
2
3
4
5

db.runCommand( "forceerror" );
assert.eq( "forced error" , db.getLastError() );
db.runCommand( "switchtoclienterrors" );
assert.isnull( db.getLastError() );