We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
response.ok
1 parent 5e68065 commit ac4f29eCopy full SHA for ac4f29e
packages/compass-smoke-tests/src/downloads.ts
@@ -18,6 +18,10 @@ export async function downloadFile({
18
}: DownloadFileOptions): Promise<string> {
19
const response = await fetch(url);
20
21
+ assert(
22
+ response.ok,
23
+ `Request failed with status ${response.status} (${response.statusText})`
24
+ );
25
const etag = response.headers.get('etag');
26
assert(etag, 'Expected an ETag header');
27
const cleanEtag = etag.match(/[0-9a-fA-F]/g)?.join('');
0 commit comments