poke: exit with status 5 if prefix registration fails
Change-Id: I2147570c37146011c9a4e8c024b74bcafdf18e4e
diff --git a/tools/peek/ndnpoke/main.cpp b/tools/peek/ndnpoke/main.cpp
index 33d91ea..fb26ab0 100644
--- a/tools/peek/ndnpoke/main.cpp
+++ b/tools/peek/ndnpoke/main.cpp
@@ -159,7 +159,7 @@
program.start();
face.processEvents();
- return program.didSendData() ? 0 : 1;
+ return static_cast<int>(program.getResult());
}
catch (const std::exception& e) {
std::cerr << "ERROR: " << e.what() << std::endl;