better error reporting when the operational transform fails to parse JSON

pull/1/head
ansuz 9 years ago
parent 0ff4906f0e
commit 4f3fcb08a4

@ -12,7 +12,12 @@ define([
JSON.parse(text3);
return resultOp;
} catch (e) {
console.log(e);
console.error(e);
console.log({
resultOp: resultOp,
text2: text2,
text3: text3
});
}
// returning **null** breaks out of the loop

Loading…
Cancel
Save