puppyperpetual 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ProcessManager.js +5 -6
package/package.json
CHANGED
package/src/ProcessManager.js
CHANGED
|
@@ -267,16 +267,15 @@ export class ProcessManager {
|
|
|
267
267
|
console.log(`${command} exited with code: ${code}`);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
if (code
|
|
271
|
-
|
|
272
|
-
} else {
|
|
273
|
-
reject(new Error(`${command} exited with code ${code}`));
|
|
270
|
+
if (code !== 0) {
|
|
271
|
+
this.logger.logSend(`ERR: ${command} exited with code ${code}`);
|
|
274
272
|
}
|
|
273
|
+
resolve(code);
|
|
275
274
|
});
|
|
276
275
|
|
|
277
276
|
cmdProcess.on("error", (err) => {
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
this.logger.logSend(`ERR: Failed to start ${command}: ${err.message}`);
|
|
278
|
+
resolve(err);
|
|
280
279
|
});
|
|
281
280
|
});
|
|
282
281
|
}
|