fix(GUI): incorrect function call in FlashController (#1606)

This commit fixes a subtle issue where we are calling a non-existing
function of an error object, instead of using the exception reporter
module.

Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
Juan Cruz Viotti 2017-07-18 11:47:26 -03:00 committed by GitHub
parent 37b7ea3b0a
commit 3a42331875

View File

@ -22,6 +22,7 @@ const flashState = require('../../../models/flash-state');
const driveScanner = require('../../../modules/drive-scanner');
const utils = require('../../../../shared/utils');
const notification = require('../../../os/notification');
const exceptionReporter = require('../../../modules/exception-reporter');
const path = require('path');
module.exports = function(
@ -95,7 +96,7 @@ module.exports = function(
FlashErrorModalService.show(messages.error.notEnoughSpaceInDrive());
} else {
FlashErrorModalService.show(messages.error.genericFlashError());
error.reportException(error);
exceptionReporter.report(error);
}
})