Merge pull request #17516 from eileenmcnaughton/pf_field
[civicrm-core.git] / CRM / Core / JobManager.php
index ed2954fc1d14335b1d6ce2f92654e34b003f73ea..d19e786d4ad19ccc4a12b3e9c99d6b67ba9c206c 100644 (file)
@@ -181,7 +181,7 @@ class CRM_Core_JobManager {
    */
   private function _getJob($id = NULL, $entity = NULL, $action = NULL) {
     if (is_null($id) && is_null($action)) {
-      CRM_Core_Error::fatal('You need to provide either id or name to use this method');
+      throw new CRM_Core_Exception('You need to provide either id or name to use this method');
     }
     $dao = new CRM_Core_DAO_Job();
     $dao->id = $id;