Skip to content

Commit ac4edbf

Browse files
committed
fix: Fix bootstrap error message being incorrect
1 parent 2f55a91 commit ac4edbf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

editors/code/src/bootstrap.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ export async function bootstrap(
2323

2424
if (!isValidExecutable(path, config.serverExtraEnv)) {
2525
throw new Error(
26-
`Failed to execute ${path} --version.` + config.serverPath
27-
? `\`config.server.path\` or \`config.serverPath\` has been set explicitly.\
26+
`Failed to execute ${path} --version.` +
27+
(config.serverPath
28+
? `\`config.server.path\` or \`config.serverPath\` has been set explicitly.\
2829
Consider removing this config or making a valid server binary available at that path.`
29-
: "",
30+
: ""),
3031
);
3132
}
3233

0 commit comments

Comments
 (0)