diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-10-19 21:21:00 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-10-19 21:21:00 -0700 |
commit | ba02ae7f8dca794032959c62f72603b2f7814e68 (patch) | |
tree | a62a1ac8ec72d590253970c7dc5ab90dda6adc1a /ext/fg/js/driver.js | |
parent | 7618b8e90904e354f43d3447363e2c5a1f98d357 (diff) |
Improved error handling
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r-- | ext/fg/js/driver.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js index 75dbe219..9aab7950 100644 --- a/ext/fg/js/driver.js +++ b/ext/fg/js/driver.js @@ -163,6 +163,8 @@ class Driver { return true; }); } + }).catch(error => { + alert('Error: ' + error); }); } @@ -202,6 +204,8 @@ class Driver { return true; }); } + }).catch(error => { + alert('Error: ' + error); }); } @@ -231,6 +235,8 @@ class Driver { } }); } + }).catch(error => { + alert('Error: ' + error); }); } @@ -273,6 +279,8 @@ class Driver { } else { alert('Note could not be added'); } + }).catch(error => { + alert('Error: ' + error); }); } @@ -317,6 +325,8 @@ class Driver { states.forEach((state, index) => this.popup.invokeApi('setActionState', {index, state, sequence})); } }); + }).catch(error => { + alert('Error: ' + error); }); } } |