Improve error logging for link_cls errors