log out the reason PUPPETEER_DOWNLOAD_ENCOUNTER_ERROR

This commit is contained in:
geekgeekrun
2024-02-25 16:27:35 +08:00
parent 4fc5c8c3b1
commit ced77c65df
5 changed files with 28 additions and 1 deletions
@@ -165,6 +165,10 @@ export function createMainWindow(): void {
mainWindow?.webContents.send(data.type, data)
break
}
case 'PUPPETEER_DOWNLOAD_ENCOUNTER_ERROR': {
console.error(data)
break;
}
default: {
return
}