mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-31 10:50:03 +00:00
Rephrase hint message
This commit is contained in:
@ -22,9 +22,9 @@ pub async fn get_metrics(
|
||||
let auth_filters = index_scheduler.filters();
|
||||
if !auth_filters.all_indexes_authorized() {
|
||||
let mut error = ResponseError::from(AuthenticationError::InvalidToken);
|
||||
error.message.push_str(
|
||||
" The API key for the `/metrics` route must have no limitation on the indexes.",
|
||||
);
|
||||
error
|
||||
.message
|
||||
.push_str(" The API key for the `/metrics` route must allow access to all indexes.");
|
||||
return Err(error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user