Improved error handling in reports