From 850cf401575db7a7c2310c3b278a2d9e326b790f Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 21 Feb 2013 01:56:57 +0000 Subject: [PATCH] more mess, again dont merge, just for me --- src/static/js/ace2_inner.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 830c2b508..c5019df40 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -188,10 +188,13 @@ function Ace2Inner(){ try{ setDocAText(atext); }catch(err){ - var err = { - errorInfo: "Text is broken so wont load on the client" + var padId = top.pad.getPadId(); + var errMsg = "Pad data wont load for pad: " +padId; + top.console.error(errMsg); + var error = { + errorInfo: errMsg } - $.post('/jserror', err); + $.post('/jserror', error); } }, applyChangesetToDocument: function(changeset, preferInsertionAfterCaret)