More descriptive deprecation notice for Angular settings
authorcolemanw <coleman@civicrm.org>
Tue, 7 Nov 2023 19:49:30 +0000 (14:49 -0500)
committercolemanw <coleman@civicrm.org>
Tue, 7 Nov 2023 19:49:30 +0000 (14:49 -0500)
Civi/Angular/Manager.php

index 1a382743cb9d524f542c0e0c0541965432a4bcf7..1dd345782447aa2801090d6bafeb6ce4a26f9112 100644 (file)
@@ -136,7 +136,7 @@ class Manager {
         // Merge in defaults
         $angularModules[$module] += ['basePages' => ['civicrm/a']];
         if (!empty($info['settings'])) {
-          \CRM_Core_Error::deprecatedWarning('Angular "settings" is not supported. See https://github.com/civicrm/civicrm-core/pull/19052');
+          \CRM_Core_Error::deprecatedWarning(sprintf('The Angular file "%s" from extension "%s" must be updated to use "settingsFactory" instead of "settings". See https://github.com/civicrm/civicrm-core/pull/19052', $info['module'], $info['ext']));
         }
         // Validate settingsFactory callables
         if (isset($info['settingsFactory'])) {