Skip to content

Commit b90e086

Browse files
committed
fix: use DownloadError on max retries exceeded
1 parent f726b9c commit b90e086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinaryDownload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export class MongoBinaryDownload {
420420
}
421421
}
422422

423-
throw new Error('Max retries exceeded');
423+
throw new DownloadError(downloadUrl, 'Max retries exceeded');
424424
}
425425

426426
/**

0 commit comments

Comments
 (0)