Mercurial > hg > piper-cpp
diff vamp-client/CapnpRRClient.h @ 104:387d38c96c16
Merge
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 14 Oct 2016 16:24:01 +0100 |
parents | 8c449824e08d |
children | d74dfc11927c |
line wrap: on
line diff
--- a/vamp-client/CapnpRRClient.h Fri Oct 14 16:23:36 2016 +0100 +++ b/vamp-client/CapnpRRClient.h Fri Oct 14 16:24:01 2016 +0100 @@ -285,9 +285,15 @@ ReqId id) { if (r.getResponse().which() != type) { + std::cerr << "checkResponseType: wrong response type (received " + << r.getResponse().which() << ", expected " << type << ")" + << std::endl; throw std::runtime_error("Wrong response type"); } if (ReqId(r.getId().getNumber()) != id) { + std::cerr << "checkResponseType: wrong response id (received " + << r.getId().getNumber() << ", expected " << id << ")" + << std::endl; throw std::runtime_error("Wrong response id"); } }