##// END OF EJS Templates
Simplify error handling for errors in sending sync messages from js
Jason Grout -
Show More
@@ -396,10 +396,9 define(["widgets/js/manager",
396 }
396 }
397 }
397 }
398 that.comm.send({method: 'backbone', sync_data: state, buffer_keys: buffer_keys}, callbacks, {}, buffers);
398 that.comm.send({method: 'backbone', sync_data: state, buffer_keys: buffer_keys}, callbacks, {}, buffers);
399 }).catch(utils.reject("Couldn't send widget sync message", true))
399 }).catch(function(error) {
400 .catch(function(error) {
401 that.pending_msgs--;
400 that.pending_msgs--;
402 return error;
401 return (utils.reject("Couldn't send widget sync message", true))(error);
403 });
402 });
404 },
403 },
405
404
General Comments 0
You need to be logged in to leave comments. Login now