catch/report async errors in slice
This commit is contained in:
parent
c6506f0f60
commit
c728b878ac
1 changed files with 2 additions and 1 deletions
|
|
@ -836,7 +836,8 @@ class Widget {
|
||||||
let drv = driver[settings.mode.toUpperCase()];
|
let drv = driver[settings.mode.toUpperCase()];
|
||||||
|
|
||||||
if (drv) {
|
if (drv) {
|
||||||
drv.slice(settings, widget, catchupdate, catchdone);
|
drv.slice(settings, widget, catchupdate, catchdone)
|
||||||
|
.catch(error => ondone(error));
|
||||||
} else {
|
} else {
|
||||||
console.log('invalid mode: '+settings.mode);
|
console.log('invalid mode: '+settings.mode);
|
||||||
ondone('invalid mode: '+settings.mode);
|
ondone('invalid mode: '+settings.mode);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue