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:
Juan Cruz Viotti 2016-09-11 10:26:25 -07:00 committed by GitHub
parent 1037905cbb
commit 7798c3398b

View File

@ -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);
};