From 7be106f927bedb63c853dd9c3e39787b23048d33 Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Fri, 18 Jul 2014 18:03:36 -0700 Subject: [PATCH] provide console warning on bad JSON --- core-ajax.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core-ajax.html b/core-ajax.html index 9cbfd78..4dbddfb 100644 --- a/core-ajax.html +++ b/core-ajax.html @@ -238,6 +238,9 @@ try { return JSON.parse(r); } catch (x) { + console.warn('core-ajax caught an exception trying to parse reponse as JSON:'); + console.warn('url:', this.url); + console.warn(x); return r; } },