diff --git a/lib/gui/app.js b/lib/gui/app.js index 8da48ab4..fa2e36a6 100644 --- a/lib/gui/app.js +++ b/lib/gui/app.js @@ -210,7 +210,7 @@ app.controller('AppController', function( } this.selectImage(image); - }); + }).catch(this.handleError); }; this.selectDrive = (drive) => { @@ -222,7 +222,9 @@ app.controller('AppController', function( }; this.openDriveSelector = () => { - DriveSelectorService.open().then(this.selectDrive); + DriveSelectorService.open() + .then(this.selectDrive) + .catch(this.handleError); }; this.reselectImage = () => {