We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eac8b3 commit fcb7371Copy full SHA for fcb7371
1 file changed
src/node-loader.js
@@ -767,6 +767,20 @@ function nodeLoader() {
767
}
768
});
769
770
+ window.electronAppAPI.onProcessError((eventInstanceId, err) => {
771
+ if (eventInstanceId !== instanceId) {
772
+ return;
773
+ }
774
+ window.isNodeTerminated = true;
775
+ window.isNodeReady = false;
776
+ nodeTerminationResolve();
777
+ console.error(`PhNode: command error: "${err.message}"`);
778
+ if (!resolved) {
779
+ logger.reportError(err, `PhNode failed to start!`);
780
+ reject("PhNode: closed - Terminated.");
781
782
+ });
783
+
784
window.electronAppAPI.onProcessStdout((eventInstanceId, line) => {
785
if (eventInstanceId !== instanceId) {
786
return;
0 commit comments