add packet type to error message