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

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/debug-artifacts.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debug-artifacts.ts

+4-1
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)