Fixed error message for corrupted packets