better error reporting when the operational transform fails to parse JSON

pull/1/head
ansuz 9 years ago
parent 79a9998b13
commit 0c6222b5f9

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

Loading…
Cancel
Save