mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Fix after upgrading thiserror
This commit is contained in:
		| @@ -19,15 +19,15 @@ pub enum MeilisearchHttpError { | ||||
|     #[error("The Content-Type `{0}` does not support the use of a csv delimiter. The csv delimiter can only be used with the Content-Type `text/csv`.")] | ||||
|     CsvDelimiterWithWrongContentType(String), | ||||
|     #[error( | ||||
|         "The Content-Type `{0}` is invalid. Accepted values for the Content-Type header are: {}", | ||||
|         .1.iter().map(|s| format!("`{}`", s)).collect::<Vec<_>>().join(", ") | ||||
|         "The Content-Type `{}` is invalid. Accepted values for the Content-Type header are: {}", | ||||
|         .0, .1.iter().map(|s| format!("`{}`", s)).collect::<Vec<_>>().join(", ") | ||||
|     )] | ||||
|     InvalidContentType(String, Vec<String>), | ||||
|     #[error("Document `{0}` not found.")] | ||||
|     DocumentNotFound(String), | ||||
|     #[error("Sending an empty filter is forbidden.")] | ||||
|     EmptyFilter, | ||||
|     #[error("Invalid syntax for the filter parameter: `expected {}, found: {1}`.", .0.join(", "))] | ||||
|     #[error("Invalid syntax for the filter parameter: `expected {}, found: {}`.", .0.join(", "), .1)] | ||||
|     InvalidExpression(&'static [&'static str], Value), | ||||
|     #[error("Using `federationOptions` is not allowed in a non-federated search.\n - Hint: remove `federationOptions` from query #{0} or add `federation` to the request.")] | ||||
|     FederationOptionsInNonFederatedRequest(usize), | ||||
|   | ||||
| @@ -86,9 +86,9 @@ pub enum EmbedErrorKind { | ||||
|     }, | ||||
|     option_info(.0.as_deref(), "server replied with "))] | ||||
|     RestBadRequest(Option<String>, ConfigurationSource), | ||||
|     #[error("received internal error HTTP {0} from embedding server{}", option_info(.1.as_deref(), "server replied with "))] | ||||
|     #[error("received internal error HTTP {} from embedding server{}", .0, option_info(.1.as_deref(), "server replied with "))] | ||||
|     RestInternalServerError(u16, Option<String>), | ||||
|     #[error("received unexpected HTTP {0} from embedding server{}", option_info(.1.as_deref(), "server replied with "))] | ||||
|     #[error("received unexpected HTTP {} from embedding server{}", .0, option_info(.1.as_deref(), "server replied with "))] | ||||
|     RestOtherStatusCode(u16, Option<String>), | ||||
|     #[error("could not reach embedding server:\n  - {0}")] | ||||
|     RestNetwork(ureq::Transport), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user