Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / resource-directory / samples / rd_publishingClient.cpp
index 444ceac..2897af7 100644 (file)
@@ -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)
     {