mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Rephrase hint message
This commit is contained in:
parent
7ae10abb6b
commit
d4d4702f1b
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue