Skip to content

Commit b907cb0

Browse files
committed
fix(MongoBinaryDownload::download): print full error object to debug logs
1 parent 45007b1 commit b907cb0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ export class MongoBinaryDownload {
237237
requestOptions,
238238
downloadLocation,
239239
tempDownloadLocation
240-
);
240+
).catch((err) => {
241+
log(`Error:`, err);
242+
throw err;
243+
});
241244

242245
return downloadedFile;
243246
}

0 commit comments

Comments
 (0)