Improve reporting for corrupted files