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

View File

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