Install: log errors with more obvious prefix

This commit is contained in:
Lovell Fuller
2021-04-01 16:20:58 +01:00
parent 08a25a0c8f
commit fe0767df13
4 changed files with 10 additions and 4 deletions

View File

@@ -145,7 +145,9 @@ try {
tmpFileStream
.on('error', function (err) {
// Clean up temporary file
fs.unlinkSync(tarPathTemp);
try {
fs.unlinkSync(tarPathTemp);
} catch (e) {}
fail(err);
})
.on('close', function () {
@@ -157,7 +159,7 @@ try {
fs.copyFileSync(tarPathTemp, tarPathCache);
fs.unlinkSync(tarPathTemp);
}
extractTarball(tarPathCache);
extractTarball(tarPathCache, platformAndArch);
});
}
});