mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
addtional cli error logging (#605)
This commit is contained in:
parent
9c2c44026b
commit
a7f110c895
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tea",
|
||||
"version": "0.2.9",
|
||||
"version": "0.2.10",
|
||||
"private": true,
|
||||
"description": "tea gui app",
|
||||
"author": "tea.xyz",
|
||||
|
|
Loading…
Reference in a new issue