Skip to content

Commit 223a667

Browse files
bors[bot]Veetaha
andauthored
Merge #3288
3288: Quick fix circular json error when sanity-check fails r=matklad a=Veetaha Related issue: #3280 Co-authored-by: Veetaha <[email protected]>
2 parents dc6383c + ef4dfab commit 223a667

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

editors/code/src/installation/server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ async function downloadServer(source: BinarySource.GithubRelease): Promise<boole
8888
return false;
8989
}
9090

91-
if (!isBinaryAvailable(path.join(source.dir, source.file))) assert(false,
91+
const binaryPath = path.join(source.dir, source.file);
92+
93+
if (!isBinaryAvailable(binaryPath)) assert(false,
9294
`Downloaded language server binary is not functional.` +
93-
`Downloaded from: ${JSON.stringify(source, null, 4)}`
95+
`Downloaded from GitHub repo ${source.repo.owner}/${source.repo.name} ` +
96+
`to ${binaryPath}`
9497
);
9598

9699
vscode.window.showInformationMessage(

0 commit comments

Comments
 (0)