Skip to content

Commit

Permalink
fix: Fix bootstrap error message being incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Oct 1, 2024
1 parent 316a15c commit 7f8bd7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tools/rust-analyzer/editors/code/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ export async function bootstrap(

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

Expand Down

0 comments on commit 7f8bd7e

Please sign in to comment.