Auto merge of #18219 - Veykril:veykril/push-ytnzuvtoswqz, r=Veykril

fix: Fix bootstrap error message being incorrect

precedence ...
This commit is contained in:
bors 2024-10-01 10:36:27 +00:00
commit e1a76671af

View file

@ -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.`
: "",
: ""),
);
}