add log of any error