CRM-15417 - Show api deprecation warnings in console
authorColeman Watts <coleman@civicrm.org>
Fri, 10 Oct 2014 19:59:34 +0000 (15:59 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 13 Oct 2014 22:08:55 +0000 (18:08 -0400)
js/Common.js

index 13150ef23f0a3e862f3b8a6be5320e4ba0461cf7..26ae4cfaf18c5e2be58409bc7dcadb59ee368c97 100644 (file)
@@ -941,9 +941,12 @@ CRM.strings = CRM.strings || {};
         if (response.backtrace) {
           CRM.console('log', response.backtrace);
         }
+        if (typeof response.deprecated === 'string') {
+          CRM.console('warn', response.deprecated);
+        }
       }
     }
-    // Suppress errors
+    // Ignore errors thrown by parseJSON
     catch (e) {}
   });