projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.1.0
[platform/upstream/iotivity.git]
/
service
/
resource-directory
/
samples
/
rd_publishingClient.cpp
diff --git
a/service/resource-directory/samples/rd_publishingClient.cpp
b/service/resource-directory/samples/rd_publishingClient.cpp
index
444ceac
..
2897af7
100644
(file)
--- a/
service/resource-directory/samples/rd_publishingClient.cpp
+++ b/
service/resource-directory/samples/rd_publishingClient.cpp
@@
-98,7
+98,14
@@
int main()
std::cout << "Created Platform..." << std::endl;
- registerLocalResources();
+ try
+ {
+ registerLocalResources();
+ }
+ catch (std::runtime_error e)
+ {
+ std::cout << "Caught OCException [Code: " << e.what() << std::endl;
+ }
while (1)
{