From 843cc24fa5b3cd94c0d16dbad7ee42f1e8cff82c Mon Sep 17 00:00:00 2001 From: dj2ls Date: Mon, 3 Oct 2022 14:25:13 +0200 Subject: [PATCH] small error handling for starting rigctld --- gui/main.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gui/main.js b/gui/main.js index 811f3568..dab66fc9 100644 --- a/gui/main.js +++ b/gui/main.js @@ -776,13 +776,15 @@ function close_all() { // RUN RIGCTLD ipcMain.on('request-start-rigctld',(event, data)=>{ - //win.webContents.send('action-show-arq-toast-session-failed', data); - //exec('git', ['--version']) - console.log(data) - console.log(data.path) - console.log(data.parameters) - // TODO: WE NEED SOME ERROR HANDLING - exec(data.path, data.parameters); + + + try{ + exec(data.path, data.parameters); + } catch (e) { + console.log(e); + } + + /* const rigctld = exec(data.path, data.parameters);