add state to error message.