From 6af571471ac53fbcb6be9a66ee7f3e0cb2f62cc8 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 6 Sep 2023 21:29:20 -0700 Subject: [PATCH] fix: log the pip fallback error --- src/utils/setup/setupPipPack.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/setup/setupPipPack.ts b/src/utils/setup/setupPipPack.ts index b2304328..6c22bdbe 100644 --- a/src/utils/setup/setupPipPack.ts +++ b/src/utils/setup/setupPipPack.ts @@ -58,8 +58,9 @@ export async function setupPipPackWithPython( stdio: "inherit", }) } catch (err) { + info(`Failed to install ${name} via ${pip}: ${err}.`) if ((await setupPipPackSystem(name)) === null) { - throw new Error(`Failed to install ${name} via ${pip} ${err}`) + throw new Error(`Failed to install ${name} via ${pip}: ${err}.`) } } @@ -102,6 +103,7 @@ async function findBinDir(dirs: string[], name: string) { export function setupPipPackSystem(name: string) { if (process.platform === "linux") { + info(`Installing ${name} via the system package manager`) if (isArch()) { return setupPacmanPack(`python-${name}`) } else if (hasDnf()) {