summaryrefslogtreecommitdiff
path: root/jstests/sharding/error_propagation.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/error_propagation.js')
-rw-r--r--jstests/sharding/error_propagation.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/sharding/error_propagation.js b/jstests/sharding/error_propagation.js
index 5845581a5f1..6f47075f753 100644
--- a/jstests/sharding/error_propagation.js
+++ b/jstests/sharding/error_propagation.js
@@ -18,7 +18,6 @@ assert.commandWorked(db.foo.insert({a: [1, 2]}, {writeConcern: {w: 3}}));
var res = db.runCommand(
{aggregate: 'foo', pipeline: [{$project: {total: {'$add': ['$a', 1]}}}], cursor: {}});
-assert.commandFailed(res);
-assert.eq("$add only supports numeric or date types, not array", res.errmsg, printjson(res));
+assert.commandFailedWithCode(res, 16554);
st.stop();
}());