mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-08-08 08:57:05 +02:00
Fix firmware error handling (#399)
This commit is contained in:
committed by
GitHub
parent
1a4015f70c
commit
70d551e0ae
@@ -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;
|
||||||
|
Reference in New Issue
Block a user