Log more details when exiting

上级 65c59b50
...@@ -268,7 +268,7 @@ function connectToRenderer(protocol: IMessagePassingProtocol): Promise<IRenderer ...@@ -268,7 +268,7 @@ function connectToRenderer(protocol: IMessagePassingProtocol): Promise<IRenderer
try { try {
process.kill(initData.parentPid, 0); // throws an exception if the main process doesn't exist anymore. process.kill(initData.parentPid, 0); // throws an exception if the main process doesn't exist anymore.
} catch (e) { } catch (e) {
onTerminate(`parent process ${initData.parentPid} does not exist anymore`); onTerminate(`parent process ${initData.parentPid} does not exist anymore: ${e.message} (code: ${e.code}) (errno: ${e.errno})`);
} }
}, 1000); }, 1000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册