about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-10-01 12:33:37 +0200
committerLukas Wirth <lukastw97@gmail.com>2024-10-01 12:33:53 +0200
commit7f8bd7e7acc11178e6eb4ed2f0db718e62f9ec0f (patch)
treefba2e3bfd584504ee1c2ca99e3ea89aceaa7db9a /src/tools/rust-analyzer/editors/code
parent316a15c9c49c64b253dda681957ea78fff09b295 (diff)
downloadrust-7f8bd7e7acc11178e6eb4ed2f0db718e62f9ec0f.tar.gz
rust-7f8bd7e7acc11178e6eb4ed2f0db718e62f9ec0f.zip
fix: Fix bootstrap error message being incorrect
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
-rw-r--r--src/tools/rust-analyzer/editors/code/src/bootstrap.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/rust-analyzer/editors/code/src/bootstrap.ts b/src/tools/rust-analyzer/editors/code/src/bootstrap.ts
index daead47e942..35867f710d5 100644
--- a/src/tools/rust-analyzer/editors/code/src/bootstrap.ts
+++ b/src/tools/rust-analyzer/editors/code/src/bootstrap.ts
@@ -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.`
-                : "",
+                    : ""),
         );
     }