mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
small error handling for starting rigctld
This commit is contained in:
parent
2afcdd980c
commit
843cc24fa5
14
gui/main.js
14
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
|
||||
|
||||
|
||||
try{
|
||||
exec(data.path, data.parameters);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
const rigctld = exec(data.path, data.parameters);
|
||||
|
|
Loading…
Reference in a new issue