log err when encountered