add error information to protocol