add catch all for worker slicing errors
This commit is contained in:
parent
63be296463
commit
1c7a56846a
2 changed files with 15 additions and 20 deletions
|
|
@ -50,6 +50,8 @@ let dispatch = {
|
|||
position: position
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
widget.slice(settings, function(error) {
|
||||
if (error) {
|
||||
delete cache[data.id];
|
||||
|
|
@ -80,6 +82,10 @@ let dispatch = {
|
|||
send.data({update: (0.05 + update * 0.95), updateStatus: msg});
|
||||
last = now;
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
send.data({error: error.toString()});
|
||||
}
|
||||
},
|
||||
|
||||
printSetup: function(data, send) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue