Fix firmware error handling (#399)

This commit is contained in:
Erik Olof Gunnar Andersson 2024-10-10 19:59:55 +02:00 committed by GitHub
parent 1a4015f70c
commit 70d551e0ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,7 @@ export class SettingsComponent {
}
},
error: (err) => {
this.toastrService.error('Uploaded Error', 'Error');
this.toastrService.error(err.error, 'Error');
},
complete: () => {
this.firmwareUpdateProgress = null;
@ -197,7 +197,7 @@ export class SettingsComponent {
}
},
error: (err) => {
this.toastrService.error('Upload Error', 'Error');
this.toastrService.error(err.error, 'Error');
},
complete: () => {
this.websiteUpdateProgress = null;