The code comments suggest we don't really know what to do here,
previously we did nothing, which was not helpful to a developer
trying to figure out why their code did nothing.
Now we emit the exception's message to the log file.
catch (\CRM_Core_Exception $e) {
// What to do here? Sometimes we should silently ignore errors, e.g. an optional entity
// intentionally left blank. Other times it's a real error the user should know about.
+ \Civi::log()->debug("Silently ignoring exception in Afform processGenericEntity call: " . $e->getMessage());
}
}
}