Skip to content

Commit

Permalink
Merge pull request #22339 from braders/exception-missing-message-fix
Browse files Browse the repository at this point in the history
[NFC] CRM_Core_Exception incorrectly called without message
  • Loading branch information
demeritcowboy authored Dec 29, 2021
2 parents 0673546 + c62a2b9 commit 78c122b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ public static function getContactTypes($id) {
return $contactTypes;
}
else {
throw new CRM_Core_Exception();
throw new CRM_Core_Exception('Cannot proceed without a valid contact');
}
}

Expand Down

0 comments on commit 78c122b

Please sign in to comment.