Skip to content

Commit a8be43c

Browse files
committed
Don't throw error for ENOENT
1 parent fd8685f commit a8be43c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/debug-artifacts.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/debug-artifacts.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debug-artifacts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,10 @@ async function createPartialDatabaseBundle(
352352
});
353353

354354
zip.on("warning", (err) => {
355-
throw err;
355+
// Ignore ENOENT warnings. There's nothing anyone can do about it.
356+
if (err.code !== "ENOENT") {
357+
throw err;
358+
}
356359
});
357360

358361
zip.pipe(output);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy