Add error logging to file submission process

This commit is contained in:
MikeHughes-BIN
2025-12-22 14:21:50 +01:00
parent a96a3bebd1
commit b57972bf1b
+5
View File
@@ -160,6 +160,7 @@ electron.ipcMain.on("file_submit", async (event, args) => {
mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps}) mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps})
}).catch(err => { }).catch(err => {
mainWindow.webContents.send("error", err) mainWindow.webContents.send("error", err)
console.log(err);
return return
}) })
@@ -174,6 +175,7 @@ electron.ipcMain.on("file_submit", async (event, args) => {
mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps}) mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps})
}).catch(err => { }).catch(err => {
mainWindow.webContents.send("error", err) mainWindow.webContents.send("error", err)
console.log(err);
return return
}) })
@@ -188,6 +190,7 @@ electron.ipcMain.on("file_submit", async (event, args) => {
mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps}) mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps})
}).catch(err => { }).catch(err => {
mainWindow.webContents.send("error", err) mainWindow.webContents.send("error", err)
console.log(err);
return return
}) })
@@ -204,6 +207,7 @@ electron.ipcMain.on("file_submit", async (event, args) => {
mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps}) mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps})
}).catch(err => { }).catch(err => {
mainWindow.webContents.send("error", err) mainWindow.webContents.send("error", err)
console.log(err);
return return
}) })
@@ -212,6 +216,7 @@ electron.ipcMain.on("file_submit", async (event, args) => {
mainWindow.webContents.send("speakerAudios", resp) mainWindow.webContents.send("speakerAudios", resp)
}).catch(err => { }).catch(err => {
mainWindow.webContents.send("error", err) mainWindow.webContents.send("error", err)
console.log(err);
return return
}) })
} catch (error) { } catch (error) {