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

@ -256,7 +256,10 @@ async function createPartialDatabaseBundle(config, language) {
throw err;
});
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);
zip.directory(databasePath, false);

File diff suppressed because one or more lines are too long