Don't throw error for ENOENT
This commit is contained in:
parent
fd8685f16e
commit
a8be43c24e
3 changed files with 9 additions and 3 deletions
5
lib/debug-artifacts.js
generated
5
lib/debug-artifacts.js
generated
|
|
@ -256,7 +256,10 @@ async function createPartialDatabaseBundle(config, language) {
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
zip.on("warning", (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.pipe(output);
|
||||||
zip.directory(databasePath, false);
|
zip.directory(databasePath, false);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -352,7 +352,10 @@ async function createPartialDatabaseBundle(
|
||||||
});
|
});
|
||||||
|
|
||||||
zip.on("warning", (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.pipe(output);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue