Skip to content

Commit b91eeae

Browse files
committed
Auto merge of rust-lang#18219 - Veykril:veykril/push-ytnzuvtoswqz, r=Veykril
fix: Fix bootstrap error message being incorrect precedence ...
2 parents 00399ab + 7f8bd7e commit b91eeae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tools/rust-analyzer/editors/code/src/bootstrap.ts

+4-3
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)