Merge pull request #748 from MarinPostma/missing-primary-key-message

error message for missing primary key
This commit is contained in:
Clément Renault
2020-06-04 10:52:05 +02:00
committed by GitHub

View File

@ -34,7 +34,7 @@ impl fmt::Display for SerializerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self { match self {
SerializerError::DocumentIdNotFound => { SerializerError::DocumentIdNotFound => {
f.write_str("serialized document does not have an id according to the schema") f.write_str("Primary key is missing.")
} }
SerializerError::InvalidDocumentIdFormat => { SerializerError::InvalidDocumentIdFormat => {
f.write_str("a document primary key can be of type integer or string only composed of alphanumeric characters, hyphens (-) and underscores (_).") f.write_str("a document primary key can be of type integer or string only composed of alphanumeric characters, hyphens (-) and underscores (_).")