throw and post err on bad pad data

This commit is contained in:
John McLear 2013-02-21 01:39:03 +00:00
parent 945d5b98e8
commit 1e6fc26780

View file

@ -185,7 +185,14 @@ function Ace2Inner(){
{ {
setDocumentAttributedText: function(atext) setDocumentAttributedText: function(atext)
{ {
try{
setDocAText(atext); setDocAText(atext);
}catch(err){
var err = {
errorInfo: "Text is broken so wont load on the client"
}
$.post('/jserror', err);
}
}, },
applyChangesetToDocument: function(changeset, preferInsertionAfterCaret) applyChangesetToDocument: function(changeset, preferInsertionAfterCaret)
{ {