[Fleet] Classify index not found as file not found too (#165469)

This commit is contained in:
Dan Panzarella 2023-09-01 11:02:29 -04:00 committed by GitHub
parent 2af57fb24e
commit 43b3f2e1cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,9 @@ export class FleetFromHostFilesClient implements FleetFromHostFileClientInterfac
if (error instanceof FleetFilesClientError) {
throw error;
}
if (error.message.includes('index_not_found')) {
throw new FleetFileNotFound(error.message, error);
}
throw new FleetFilesClientError(error.message, error);
}