Unverified Commit 24267f41 authored by mattwire's avatar mattwire Committed by GitHub

Merge pull request #16880 from yashodha/error

log error message instead of throwing exception
parents 2e5067e6 92446100
......@@ -63,7 +63,8 @@ class TokenCompatSubscriber implements EventSubscriberInterface {
$contact = reset($contact);
if (!$contact || is_a($contact, 'CRM_Core_Error')) {
// FIXME: Need to differentiate errors which kill the batch vs the individual row.
throw new TokenException("Failed to generate token data. Invalid contact ID: " . $row->context['contactId']);
\Civi::log()->debug("Failed to generate token data. Invalid contact ID: " . $row->context['contactId']);
continue;
}
//update value of custom field token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment