diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 9487267617a..a5958146354 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -252,7 +252,12 @@ async function bootstrapServer(config: Config, state: PersistentState): Promise< log.info("Using server binary at", path); if (!isValidExecutable(path)) { - throw new Error(`Failed to execute ${path} --version`); + if (config.serverPath) { + throw new Error(`Failed to execute ${path} --version. \`config.server.path\` or \`config.serverPath\` has been set explicitly.\ + Consider removing this config or making a valid server binary available at that path.`); + } else { + throw new Error(`Failed to execute ${path} --version`); + } } return path;