addtional cli error logging (#604)

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

View file

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

View file

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