summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/counter/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceStorm/counter/Server.cpp')
-rw-r--r--cpp/demo/IceStorm/counter/Server.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/cpp/demo/IceStorm/counter/Server.cpp b/cpp/demo/IceStorm/counter/Server.cpp
index 33bbcb4c8aa..838b7d11efa 100644
--- a/cpp/demo/IceStorm/counter/Server.cpp
+++ b/cpp/demo/IceStorm/counter/Server.cpp
@@ -40,33 +40,33 @@ Server::run(int argc, char* argv[])
string proxy = properties->getProperty(proxyProperty);
if(proxy.empty())
{
- cerr << appName() << ": property `" << proxyProperty << "' not set" << endl;
- return EXIT_FAILURE;
+ cerr << appName() << ": property `" << proxyProperty << "' not set" << endl;
+ return EXIT_FAILURE;
}
IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(communicator()->stringToProxy(proxy));
if(!manager)
{
- cerr << appName() << ": invalid proxy" << endl;
- return EXIT_FAILURE;
+ cerr << appName() << ": invalid proxy" << endl;
+ return EXIT_FAILURE;
}
IceStorm::TopicPrx topic;
try
{
- topic = manager->retrieve("counter");
+ topic = manager->retrieve("counter");
}
catch(const IceStorm::NoSuchTopic&)
{
- try
- {
- topic = manager->create("counter");
- }
- catch(const IceStorm::TopicExists&)
- {
- cerr << appName() << ": topic exists, please try again." << endl;
- return EXIT_FAILURE;
- }
+ try
+ {
+ topic = manager->create("counter");
+ }
+ catch(const IceStorm::TopicExists&)
+ {
+ cerr << appName() << ": topic exists, please try again." << endl;
+ return EXIT_FAILURE;
+ }
}
//