CRM_Core_Exception incorrectly called without message
authorBradley Taylor <hello@brad-taylor.co.uk>
Wed, 29 Dec 2021 13:49:19 +0000 (13:49 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Wed, 29 Dec 2021 13:49:19 +0000 (13:49 +0000)
CRM/Contact/BAO/Contact.php

index 7126027d1fd1d963cceef28a01df8d2a5bafe662..916a21f7c892055a33b4b2dc61ca212cd074e9a6 100644 (file)
@@ -1329,7 +1329,7 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
       return $contactTypes;
     }
     else {
-      throw new CRM_Core_Exception();
+      throw new CRM_Core_Exception('Cannot proceed without a valid contact');
     }
   }