better error reporting when the operational transform fails to parse JSON

This commit is contained in:
ansuz 2016-03-22 10:19:13 +01:00
parent 0ff4906f0e
commit 4f3fcb08a4

View File

@ -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