Merge pull request #18059 from civicrm/5.28
[civicrm-core.git] / CRM / Activity / Import / Parser.php
index b3b5871aff1455688526f8c966dd74e7ed123672..d74f955ca08d97b75e28383cd92fc318a9e7a89c 100644 (file)
@@ -67,7 +67,7 @@ abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser {
     $totalRowCount = NULL
   ) {
     if (!is_array($fileName)) {
-      CRM_Core_Error::fatal();
+      throw new CRM_Core_Exception('Unable to determine import file');
     }
     $fileName = $fileName['name'];