when json-ot produces json that fails to parse...
export the relevant data to a window variable so we can inspect it better
This commit is contained in:
@@ -14,14 +14,36 @@ define([
|
|||||||
return resultOp;
|
return resultOp;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
console.log({
|
var info = window.REALTIME_MODULE.ot_parseError = {
|
||||||
|
type: 'resultParseError',
|
||||||
resultOp: resultOp,
|
resultOp: resultOp,
|
||||||
|
|
||||||
|
toTransform: toTransform,
|
||||||
|
transformBy: transformBy,
|
||||||
|
|
||||||
|
text1: text,
|
||||||
text2: text2,
|
text2: text2,
|
||||||
text3: text3
|
text3: text3,
|
||||||
});
|
error: e
|
||||||
|
};
|
||||||
|
console.log('Debugging info available at `window.REALTIME_MODULE.ot_parseError`');
|
||||||
}
|
}
|
||||||
} catch (x) {
|
} catch (x) {
|
||||||
console.error(x);
|
console.error(x);
|
||||||
|
console.error(e);
|
||||||
|
var info = window.REALTIME_MODULE.ot_applyError = {
|
||||||
|
type: 'resultParseError',
|
||||||
|
resultOp: resultOp,
|
||||||
|
|
||||||
|
toTransform: toTransform,
|
||||||
|
transformBy: transformBy,
|
||||||
|
|
||||||
|
text1: text,
|
||||||
|
text2: text2,
|
||||||
|
text3: text3,
|
||||||
|
error: e
|
||||||
|
};
|
||||||
|
console.log('Debugging info available at `window.REALTIME_MODULE.ot_applyError`');
|
||||||
}
|
}
|
||||||
|
|
||||||
// returning **null** breaks out of the loop
|
// returning **null** breaks out of the loop
|
||||||
|
|||||||
Reference in New Issue
Block a user