mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 13:24:27 +01:00
Fix typo in error message
This commit is contained in:
parent
a23bdb31a3
commit
6539be6c46
@ -114,10 +114,10 @@ impl fmt::Display for FacetCountError {
|
|||||||
use FacetCountError::*;
|
use FacetCountError::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
AttributeNotSet(attr) => write!(f, "attribute {} is not set as facet", attr),
|
AttributeNotSet(attr) => write!(f, "Attribute {} is not set as facet", attr),
|
||||||
SyntaxError(msg) => write!(f, "syntax error: {}", msg),
|
SyntaxError(msg) => write!(f, "Syntax error: {}", msg),
|
||||||
UnexpectedToken { expected, found } => write!(f, "unexpected {} found, expected {:?}", found, expected),
|
UnexpectedToken { expected, found } => write!(f, "Unexpected {} found, expected {:?}", found, expected),
|
||||||
NoFacetSet => write!(f, "can't perform facet count, as no facet is set"),
|
NoFacetSet => write!(f, "Can't perform facet count, as no facet is set"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -195,9 +195,9 @@ impl fmt::Display for Error {
|
|||||||
Self::MissingAuthorizationHeader => f.write_str("You must have an authorization token"),
|
Self::MissingAuthorizationHeader => f.write_str("You must have an authorization token"),
|
||||||
Self::NotFound(err) => write!(f, "{} not found", err),
|
Self::NotFound(err) => write!(f, "{} not found", err),
|
||||||
Self::OpenIndex(err) => write!(f, "Impossible to open index; {}", err),
|
Self::OpenIndex(err) => write!(f, "Impossible to open index; {}", err),
|
||||||
Self::RetrieveDocument(id, err) => write!(f, "impossible to retrieve the document with id: {}; {}", id, err),
|
Self::RetrieveDocument(id, err) => write!(f, "Impossible to retrieve the document with id: {}; {}", id, err),
|
||||||
Self::SearchDocuments(err) => write!(f, "impossible to search documents; {}", err),
|
Self::SearchDocuments(err) => write!(f, "Impossible to search documents; {}", err),
|
||||||
Self::PayloadTooLarge => f.write_str("Payload to large"),
|
Self::PayloadTooLarge => f.write_str("Payload too large"),
|
||||||
Self::UnsupportedMediaType => f.write_str("Unsupported media type"),
|
Self::UnsupportedMediaType => f.write_str("Unsupported media type"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user