addtional cli error logging (#605)

This commit is contained in:
ABevier 2023-05-12 12:52:35 -04:00 committed by GitHub
parent 9c2c44026b
commit a7f110c895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -54,10 +54,10 @@ export async function installPackage(
});
child.on("exit", (code) => {
console.log("cli exited with code:", code);
console.log("cli stdout:", stdout);
log.info("cli exited with code:", code);
log.info("cli stdout:", stdout);
if (code !== 0) {
console.error("cli stderr:", stderr);
log.info("cli stderr:", stderr);
reject(new Error("tea exited with non-zero code: " + code));
} else {
resolve(null);

View file

@ -1,6 +1,6 @@
{
"name": "tea",
"version": "0.2.9",
"version": "0.2.10",
"private": true,
"description": "tea gui app",
"author": "tea.xyz",