fix: Fix bootstrap error message being incorrect

This commit is contained in:
Lukas Wirth 2024-10-01 12:33:37 +02:00
parent 2f55a91552
commit ac4edbf9dc

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