1 2 3 4 5
db.runCommand("forceerror"); assert.eq("forced error", db.getLastError()); db.runCommand("switchtoclienterrors"); assert.isnull(db.getLastError());