handle errors in report