be more informative on packet encoding failure