mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
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:
parent
37b7ea3b0a
commit
3a42331875
@ -22,6 +22,7 @@ const flashState = require('../../../models/flash-state');
|
|||||||
const driveScanner = require('../../../modules/drive-scanner');
|
const driveScanner = require('../../../modules/drive-scanner');
|
||||||
const utils = require('../../../../shared/utils');
|
const utils = require('../../../../shared/utils');
|
||||||
const notification = require('../../../os/notification');
|
const notification = require('../../../os/notification');
|
||||||
|
const exceptionReporter = require('../../../modules/exception-reporter');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = function(
|
module.exports = function(
|
||||||
@ -95,7 +96,7 @@ module.exports = function(
|
|||||||
FlashErrorModalService.show(messages.error.notEnoughSpaceInDrive());
|
FlashErrorModalService.show(messages.error.notEnoughSpaceInDrive());
|
||||||
} else {
|
} else {
|
||||||
FlashErrorModalService.show(messages.error.genericFlashError());
|
FlashErrorModalService.show(messages.error.genericFlashError());
|
||||||
error.reportException(error);
|
exceptionReporter.report(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user