Add better logging

This commit is contained in:
Reinier Criel 2025-11-06 12:53:24 -08:00
parent e88aede939
commit a293c76ed9

View file

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