handle download error with notifications

This commit is contained in:
MathieuG-P
2022-07-06 22:37:20 +02:00
parent c663094c96
commit 392cf7fc2b
4 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ export class BSInstallerService{
this.utils.newIpcSenc("bs-download.[Warning]", {success: true, data: out[1]});
}
else if(out[0] === "[Error]" as DownloadEventType){
reject(out);
reject(out[1]);
this.killDownloadProcess();
log.error("Download Event, Error", data.toString());
}