Update 'scripting.js'
This commit is contained in:
parent
a0aa7f22a8
commit
72e1204826
@ -27,7 +27,8 @@ async function bash(bashScript, options) {
|
|||||||
for await (const chunk of child.stderr) {
|
for await (const chunk of child.stderr) {
|
||||||
error += chunk;
|
error += chunk;
|
||||||
}
|
}
|
||||||
const exitCode = await new Promise( (resolve, reject) => { child.on('close', resolve); });
|
|
||||||
|
const exitCode = await new Promise((resolve, reject) => child.on('close', resolve));
|
||||||
|
|
||||||
if (exitCode) {
|
if (exitCode) {
|
||||||
throw new Error( `subprocess error exit ${exitCode}, ${error}`);
|
throw new Error( `subprocess error exit ${exitCode}, ${error}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user