fix: improve error handling for pipinstall

This commit is contained in:
2026-03-20 08:55:10 +01:00
parent 8428ed56b5
commit ae82ba221b
+7
View File
@@ -42,6 +42,13 @@ async function pipInstallFunction(id: string) {
console.error( console.error(
`Message: ${chalk.yellow(error.response.data?.message || "Unknown error from server")}`, `Message: ${chalk.yellow(error.response.data?.message || "Unknown error from server")}`,
); );
} else if (error.request) {
console.error(
`${chalk.red("✗")} Failed to install dependencies.`,
);
console.error(
`${chalk.yellow("Could not connect to the SHSF instance. Check your connection.")}`,
);
} else { } else {
console.error(`${chalk.red("✗")} Error:`, error.message); console.error(`${chalk.red("✗")} Error:`, error.message);
} }