Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/bootstrap.ts')
-rw-r--r--editors/code/src/bootstrap.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/editors/code/src/bootstrap.ts b/editors/code/src/bootstrap.ts
index 527edf19eb..42dd0760d6 100644
--- a/editors/code/src/bootstrap.ts
+++ b/editors/code/src/bootstrap.ts
@@ -117,9 +117,11 @@ export function isValidExecutable(path: string, extraEnv: Env): boolean {
env: { ...process.env, ...extraEnv },
});
- const printOutput = res.error ? log.warn : log.info;
- printOutput(path, "--version:", res);
-
+ if (res.error) {
+ log.warn(path, "--version:", res);
+ } else {
+ log.info(path, "--version:", res);
+ }
return res.status === 0;
}