Install: log possible error when removing vendor dir

This commit is contained in:
Lovell Fuller
2023-04-19 11:06:16 +01:00
parent 391018ad3d
commit d08baa20e6
2 changed files with 6 additions and 3 deletions

View File

@@ -88,8 +88,7 @@ const hasVendoredLibvips = function () {
/* istanbul ignore next */
const removeVendoredLibvips = function () {
const rm = fs.rmSync ? fs.rmSync : fs.rmdirSync;
rm(vendorPath, { recursive: true, maxRetries: 3, force: true });
fs.rmSync(vendorPath, { recursive: true, maxRetries: 3, force: true });
};
/* istanbul ignore next */