Some cleanup

This commit is contained in:
Reinier Criel 2025-11-06 13:24:00 -08:00
parent 2632b5c2af
commit 61a53b24fd
7 changed files with 4 additions and 7 deletions

View file

@ -1,4 +1,3 @@
// Constant for pip package manager name
export const PIP_PACKAGE_MANAGER = "pip";
// Enum of possible Python/pip invocations for Safe Chain interception

View file

@ -26,11 +26,11 @@ export async function runPip(command, args) {
});
return { status: result.status };
} catch (/** @type any */ error) {
ui.writeError(`Error executing command: ${error.message}`);
ui.writeError(`Is '${command}' installed and available on your system?`);
if (error.status) {
return { status: error.status };
} else {
ui.writeError(`Error executing command: ${error.message}`);
ui.writeError(`Is '${command}' installed and available on your system?`);
return { status: 1 };
}
}