Merge pull request #16488 from mattwire/quickform_requiredfields
[civicrm-core.git] / CRM / UF / Page / ProfileEditor.php
index 0d2b09e9b080b257ffcb45410313c41b13f1f649..466278a3fa460bd9860a9363fb660cb353f680d5 100644 (file)
@@ -14,7 +14,7 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
    * @throws \Exception
    */
   public function run() {
-    CRM_Core_Error::fatal('This is not a real page!');
+    throw new CRM_Core_Exception('This is not a real page!');
   }
 
   /**