Improved error displaying by changing the failed cases from loginfo to logerr.