Skip to content

Commit ada6445

Browse files
committed
catch errors in case fs.rm doesn't work
1 parent 73c86dc commit ada6445

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integrations/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ export async function fetchStyles(base: string, path = '/'): Promise<string> {
589589
async function gracefullyRemove(dir: string) {
590590
// Skip removing the directory in CI because it can stall on Windows
591591
if (!process.env.CI) {
592-
await fs.rm(dir, { recursive: true, force: true })
592+
await fs.rm(dir, { recursive: true, force: true }).catch((error) => {
593+
console.log(`Failed to remove ${dir}`, error)
594+
})
593595
}
594596
}

0 commit comments

Comments
 (0)