Fix string interpolation in devchat version logging

- Corrected the syntax for string interpolation in the log message that displays the devchat version and the expected version.
This commit is contained in:
bobo.yang 2023-07-25 12:35:49 +08:00
parent 6681ed65cf
commit a1b124166d

View File

@ -34,7 +34,7 @@ export function checkDevChatDependency(pythonCommand: string, showError: boolean
const expectVersion = 'DevChat 0.2.0';
const devchatVersion = runCommand(`"${devChat}" --version`).toString().trim();
if (devchatVersion < expectVersion) {
logger.channel()?.info("devchat version: ${devchatVersion}, but expect version: ${expectVersion}");
logger.channel()?.info(`devchat version: ${devchatVersion}, but expect version: ${expectVersion}`);
return false;
}