Skip to content

Commit e506c1b

Browse files
committed
DOCSP30350 fix code example format
(cherry picked from commit 1d219ee)
1 parent f88722b commit e506c1b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/crud/operation-error-handling.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ error message:
7979
.. code-block:: none
8080
:copyable: false
8181

82-
WriteError: { code: 11000, message: "E11000 duplicate key error collection:
83-
testDB.testCollection index: _id_ dup key: { _id: 1 }", details: Document{{}}} }
82+
WriteError{code=11000, message='E11000 duplicate key error
83+
collection: testDB.testCollection index: _id_ dup key: { _id: 1 }',
84+
details=Document{{}}}
8485

8586
In the preceding error message, the ``message`` field describes the reason for
8687
the error, and the ``details`` field provides specific details about the failing
@@ -99,9 +100,9 @@ to the message. For example, if the index of the item that produced the error is
99100
:copyable: false
100101
:emphasize-lines: 1
101102

102-
BulkWriteError{ index: 2, code: 11000, message: 'E11000 duplicate key error
103+
BulkWriteError{index=2, code=11000, message='E11000 duplicate key error
103104
collection: testDB.testCollection index: _id_ dup key: { _id: 1 }',
104-
details: Document{{}} }
105+
details=Document{{}}}
105106

106107
Write Concern Error
107108
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)