I am receiving the E11000 duplicate key error in different formats when running our application on different local machines.
Format 1:
u'E11000 duplicate key error collection: baseclass.users index: email dup key: { : "jianyang@mailinator.com" }'
Format 2:
u'E11000 duplicate key error index: baseclass.users.$email dup key: { : "jianyang@mailinator.com" }'
What is the reason for this, and how can I control this formatting? I am trying to reliably extract some data from this string.