diff --git a/packages/compass-smoke-tests/src/downloads.ts b/packages/compass-smoke-tests/src/downloads.ts index 49ed7815cf8..3b37a86bc8b 100644 --- a/packages/compass-smoke-tests/src/downloads.ts +++ b/packages/compass-smoke-tests/src/downloads.ts @@ -18,6 +18,10 @@ export async function downloadFile({ }: DownloadFileOptions): Promise { const response = await fetch(url); + assert( + response.ok, + `Request failed with status ${response.status} (${response.statusText})` + ); const etag = response.headers.get('etag'); assert(etag, 'Expected an ETag header'); const cleanEtag = etag.match(/[0-9a-fA-F]/g)?.join('');