mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Change error message when no indices match a given data view (#126158)
This commit is contained in:
parent
b0cdbd9452
commit
78103870bb
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ export function isEsIndexNotFoundError(err: any) {
|
|||
* @return {Boom}
|
||||
*/
|
||||
export function createNoMatchingIndicesError(pattern: string[] | string) {
|
||||
const err = Boom.notFound(`No indices match pattern "${pattern}"`);
|
||||
const err = Boom.notFound(`No indices match "${pattern}"`);
|
||||
(err.output.payload as any).code = ERR_NO_MATCHING_INDICES;
|
||||
return err;
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ export default function ({ getService }) {
|
|||
{ sort: false }
|
||||
)}`;
|
||||
({ body } = await supertest.get(uri).expect(404));
|
||||
expect(body.message).to.contain('No indices match pattern "foo"');
|
||||
expect(body.message).to.contain('No indices match "foo"');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue