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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/error_propagation.js b/jstests/sharding/error_propagation.js
index b4bb0b72331..1a74270f745 100644
--- a/jstests/sharding/error_propagation.js
+++ b/jstests/sharding/error_propagation.js
@@ -20,6 +20,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.commandFailedWithCode(res, 16554);
+assert.commandFailedWithCode(res, [16554, ErrorCodes.TypeMismatch]);
st.stop();
}());