diff options
Diffstat (limited to 'src/mongo/db/update/bit_node.cpp')
-rw-r--r-- | src/mongo/db/update/bit_node.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mongo/db/update/bit_node.cpp b/src/mongo/db/update/bit_node.cpp index 67a334970fc..19f7a560846 100644 --- a/src/mongo/db/update/bit_node.cpp +++ b/src/mongo/db/update/bit_node.cpp @@ -60,9 +60,7 @@ Status BitNode::init(BSONElement modExpr, const boost::intrusive_ptr<ExpressionC return Status(ErrorCodes::BadValue, str::stream() << "The $bit modifier only supports 'and', 'or', and 'xor', not '" - << payloadFieldName - << "' which is an unknown operator: {" - << curOp + << payloadFieldName << "' which is an unknown operator: {" << curOp << "}"); } @@ -70,9 +68,7 @@ Status BitNode::init(BSONElement modExpr, const boost::intrusive_ptr<ExpressionC return Status(ErrorCodes::BadValue, str::stream() << "The $bit modifier field must be an Integer(32/64 bit); a '" - << typeName(curOp.type()) - << "' is not supported here: {" - << curOp + << typeName(curOp.type()) << "' is not supported here: {" << curOp << "}"); } @@ -97,11 +93,8 @@ ModifierNode::ModifyResult BitNode::updateExistingElement( mutablebson::findFirstChildNamed(element->getDocument().root(), "_id"); uasserted(ErrorCodes::BadValue, str::stream() << "Cannot apply $bit to a value of non-integral type." - << idElem.toString() - << " has the field " - << element->getFieldName() - << " of non-integer type " - << typeName(element->getType())); + << idElem.toString() << " has the field " << element->getFieldName() + << " of non-integer type " << typeName(element->getType())); } SafeNum value = applyOpList(element->getValueSafeNum()); |