mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
refactor(GUI): remove ErrorService.reportException()
ENOSPC workaround (#695)
This function used to handle `ENOSPC` as a corner case in order to
prevent it from being shown using the default Analytics/Dialog
machinery. This was because the "alert ribbon" used to react to changes
automatically from the templates, however, now that the "alert ribbon"
was removed, and replaced it with modals, we have finer control of how
and when this error gets shown, so the workaround is no longer
necessary.
See: 951b8de9fc
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
1037905cbb
commit
7798c3398b
@ -41,14 +41,6 @@ error.service('ErrorService', function(AnalyticsService, OSDialogService) {
|
||||
* ErrorService.reportException(new Error('Something happened'));
|
||||
*/
|
||||
this.reportException = (exception) => {
|
||||
|
||||
// This particular error is handled by the alert ribbon
|
||||
// on the main application page.
|
||||
if (exception.code === 'ENOSPC') {
|
||||
AnalyticsService.logEvent('Drive ran out of space');
|
||||
return;
|
||||
}
|
||||
|
||||
OSDialogService.showError(exception, exception.description);
|
||||
AnalyticsService.logException(exception);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user