Skip to main content

DUPLICATE_VALUE_MESSAGE

Constant DUPLICATE_VALUE_MESSAGE 

Source
pub const DUPLICATE_VALUE_MESSAGE: &str = "A duplicate value for a field with unique values was provided";
Expand description

The one message a duplicate-key collision ever carries (MongoStorageAdapter.js:576-579).

Fixed, and the same string in both upstream adapters. Which field collided travels in ParseErrorInfo::duplicated_field instead, because the driver’s own text names the database and the value that collided.