diff --git a/src/ipc/handlers/node_handlers.ts b/src/ipc/handlers/node_handlers.ts index 4b428e5..cab50a8 100644 --- a/src/ipc/handlers/node_handlers.ts +++ b/src/ipc/handlers/node_handlers.ts @@ -18,9 +18,7 @@ function checkCommandExists(command: string): Promise { process.stderr?.on("data", (data) => { // Log stderr but don't treat it as a failure unless the exit code is non-zero - console.warn( - `Stderr from "${command} --version": ${data.toString().trim()}` - ); + console.warn(`Stderr from "${command}": ${data.toString().trim()}`); }); process.on("error", (error) => { @@ -32,9 +30,7 @@ function checkCommandExists(command: string): Promise { if (code === 0) { resolve(output.trim()); // Command succeeded, return trimmed output } else { - console.error( - `Command "${command} --version" failed with code ${code}` - ); + console.error(`Command "${command}" failed with code ${code}`); resolve(null); // Command failed } });