Skip to content

Commit a38229f

Browse files
committed
Just warn if cleanup fails
1 parent da9d792 commit a38229f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

node-tests/helpers/skeleton-app.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ module.exports = class SkeletonApp {
3838
this._watched.kill();
3939
}
4040

41-
fs.removeSync(this.appDir);
41+
try {
42+
fs.removeSync(this.appDir);
43+
} catch (error) {
44+
// eslint-disable-next-line no-console
45+
console.warn(`Error removing skeleton-app tmpdir ${this.appDir}`, error);
46+
}
4247
}
4348
}
4449

0 commit comments

Comments
 (0)