mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
addtional cli error logging (#604)
This commit is contained in:
parent
2aabd5b1de
commit
9c2c44026b
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue