mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Change malformed_payload error
This commit is contained in:
parent
8ec0c4c913
commit
61c15b69fb
4 changed files with 49 additions and 34 deletions
|
@ -27,7 +27,7 @@ impl fmt::Display for PayloadType {
|
|||
pub enum DocumentFormatError {
|
||||
#[error("Internal error: {0}")]
|
||||
Internal(Box<dyn std::error::Error + Send + Sync + 'static>),
|
||||
#[error("{0}. The {1} payload provided is malformed.")]
|
||||
#[error("The {1} payload provided is malformed. {0}.")]
|
||||
MalformedPayload(
|
||||
Box<dyn std::error::Error + Send + Sync + 'static>,
|
||||
PayloadType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue