Don't throw error for ENOENT

This commit is contained in:
Andrew Eisenberg 2025-04-04 13:42:00 -07:00
parent fd8685f16e
commit a8be43c24e
3 changed files with 9 additions and 3 deletions

View file

@ -352,7 +352,10 @@ async function createPartialDatabaseBundle(
});
zip.on("warning", (err) => {
throw err;
// Ignore ENOENT warnings. There's nothing anyone can do about it.
if (err.code !== "ENOENT") {
throw err;
}
});
zip.pipe(output);