Merge pull request #15790 from civicrm/5.20
[civicrm-core.git] / CRM / Utils / System / Drupal6.php
index 5c49dce78d09ea8324c6a8b6de979c2402625b30..9ffae34ec6e170aff46614c77fd30eda989972b4 100644 (file)
@@ -318,7 +318,7 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase {
 
     $dbDrupal = DB::connect($config->userFrameworkDSN);
     if (DB::isError($dbDrupal)) {
-      CRM_Core_Error::fatal("Cannot connect to drupal db via $config->userFrameworkDSN, " . $dbDrupal->getMessage());
+      throw new CRM_Core_Exception("Cannot connect to drupal db via $config->userFrameworkDSN, " . $dbDrupal->getMessage());
     }
 
     $strtolower = function_exists('mb_strtolower') ? 'mb_strtolower' : 'strtolower';