Error codes are underscore again

This commit is contained in:
Louis Dureuil 2023-01-19 15:47:01 +01:00
parent a1e9c44fe5
commit b0c33ed6d2
No known key found for this signature in database

View File

@ -155,10 +155,7 @@ macro_rules! make_error_codes {
/// return the doc url associated with the error /// return the doc url associated with the error
fn url(&self) -> String { fn url(&self) -> String {
format!( format!("https://docs.meilisearch.com/errors#{}", self.name())
"https://docs.meilisearch.com/errors#{}",
self.name().to_case(convert_case::Case::Kebab)
)
} }
} }
pub mod deserr_codes { pub mod deserr_codes {