Skip to content

Commit a8b812f

Browse files
log stderr in run_script
1 parent 4594d22 commit a8b812f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/local.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function run_script(
120120
}
121121
console.log(data)
122122
})
123-
123+
child.stderr.setEncoding("utf8")
124124
child.stderr.on("data", (data) => {
125125
console.log(data)
126126
})
@@ -133,7 +133,6 @@ async function run_script(
133133
console.log("Child Process killed")
134134
})
135135
child.name = command.replace(/^.*[\\/]/, "")
136-
return child
137136
})
138137
}
139138

0 commit comments

Comments
 (0)