Skip to content

Commit 632953c

Browse files
committed
fix ci
1 parent 048195b commit 632953c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/lspArtifact.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ export async function downloadLanguageServer(): Promise<void> {
5959

6060
// clear previous cached language server
6161
try {
62-
fs.rmdirSync(resourcesDir, { recursive: true })
62+
if (fs.existsSync(resourcesDir)) {
63+
fs.rmdirSync(resourcesDir, { recursive: true })
64+
}
6365
} catch (e) {
64-
throw Error(`Failed to clean up language server`)
66+
throw Error(`Failed to clean up language server ${resourcesDir}`)
6567
}
6668

6769
await ensureDirectoryExists(tempDir)

0 commit comments

Comments
 (0)