Handle exit codes during version check

This commit is contained in:
Scott E. Graves
2019-06-06 17:11:31 -05:00
parent 0bbfddc17c
commit 4fa1c89df8
3 changed files with 10 additions and 3 deletions

View File

@@ -293,9 +293,10 @@ ipcMain.on(Constants.IPC_Check_Daemon_Version, (event, data) => {
.then(code => {
standardIPCReply(event, Constants.IPC_Check_Daemon_Version_Reply, {
Valid: (code === 0),
Code: code,
});
})
.catch(e=> {
.catch(e => {
standardIPCReply(event, Constants.IPC_Check_Daemon_Version_Reply, {
Valid: false,
}, e);