Use Exception handling for drush (d7) commands - specifically civicrm-upgrade-db
When there is a problem upgrading via drush this is how it looks
I think we should set exception handling 'somewhere' & my current best guess as to where is
--- a/CRM/Upgrade/Headless.php +++ b/CRM/Upgrade/Headless.php @@ -30,6 +30,8 @@ class CRM_Upgrade_Headless { set_time_limit(0); }
- // As long as the error scope is not deconstructed exceptions will be thrown.
- $errorScope = CRM_Core_TemporaryErrorScope::useException(); $upgrade = new CRM_Upgrade_Form();