Unnamed repository; edit this file 'description' to name the repository.
fix: Fix bootstrap error message being incorrect
Lukas Wirth 2024-10-01
parent 2f55a91 · commit ac4edbf
-rw-r--r--editors/code/src/bootstrap.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/editors/code/src/bootstrap.ts b/editors/code/src/bootstrap.ts
index daead47e94..35867f710d 100644
--- a/editors/code/src/bootstrap.ts
+++ b/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.`
- : "",
+ : ""),
);
}