branch | stable |
changeset 7831 | 6af00dbfaadd |
parent 7649 | ede740bd7077 |
child 7953 | a37531c8a4a6 |
--- a/web/data/cubicweb.js Thu Sep 22 16:53:43 2011 +0200 +++ b/web/data/cubicweb.js Thu Sep 22 16:53:46 2011 +0200 @@ -53,7 +53,13 @@ }, evalJSON: function (json) { // trust source - return eval("(" + json + ")"); + try { + return eval("(" + json + ")"); + } catch(e) { + cw.log(e); + cw.log('The faulty json source was', json); + throw (e); + } }, urlEncode: function (str) {