From 82983331389d9e64f17057bfa684f86b7aa3a8bb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 10 Oct 2014 15:59:34 -0400 Subject: [PATCH] CRM-15417 - Show api deprecation warnings in console --- js/Common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index 13150ef23f..26ae4cfaf1 100644 --- a/js/Common.js +++ b/js/Common.js @@ -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) {} }); -- 2.25.1