-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: CLI Module
-
None
-
Not Needed
Problem Description
The error message for db.collection.insertOne() is truncated
Steps to Reproduce
Create a collection
db.fixIndex.drop()
db.fixIndex.insertMany(
[
{ _id: 1, a: 1, b: 1, c: ["a1", "b1"] },
{ _id: 2, a: ["a2", "b2"], b: 2, c: ["a2", "b2"] },
{ _id: 3, a: "a3", b: ["b3, c3"], c: ["a3", "b3"] }
]
)
db.fixIndex.createIndex( {a:1, b:1} )
- Add a document that violates index constraints
db.fixIndex.insertOne( { _id: 7, a: ["a7", "b7"], b: ["b7, c7"], c: ["a7", "b7"] } )Expected Results
Full error message explaining the problem (see screen shots).
Actual Results
Error message is truncated
Additional Notes
- is duplicated by
-
MONGOSH-712 Serverless Private Beta: missing close square bracket in error message
- Closed