diff vamp-client/CapnpRRClient.h @ 101:8c449824e08d

Parameterise process name
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 14 Oct 2016 16:22:32 +0100
parents bbb99f94e225
children d74dfc11927c
line wrap: on
line diff
--- a/vamp-client/CapnpRRClient.h	Fri Oct 14 12:46:38 2016 +0100
+++ b/vamp-client/CapnpRRClient.h	Fri Oct 14 16:22:32 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");
         }
     }