adapt to Controller::CommandFailCallback with ControlResponse
refs #3739
Change-Id: I193fb11fd96bd91808fc6e3af22a8da2511246e2
diff --git a/src/nlsr.cpp b/src/nlsr.cpp
index 7bc77e2..d5c0038 100644
--- a/src/nlsr.cpp
+++ b/src/nlsr.cpp
@@ -324,9 +324,9 @@
}
void
-Nlsr::onDestroyFaceFailure(int32_t code, const std::string& error)
+Nlsr::onDestroyFaceFailure(const ndn::nfd::ControlResponse& response)
{
- std::cerr << error << " (code: " << code << ")";
+ std::cerr << response.getText() << " (code: " << response.getCode() << ")";
throw Error("Error: Face destruction failed");
}
@@ -338,7 +338,7 @@
it != adjacents.end(); it++) {
m_fib.destroyFace((*it).getConnectingFaceUri(),
std::bind(&Nlsr::onDestroyFaceSuccess, this, _1),
- std::bind(&Nlsr::onDestroyFaceFailure, this, _1, _2));
+ std::bind(&Nlsr::onDestroyFaceFailure, this, _1));
}
}