summaryrefslogtreecommitdiff
path: root/TAO/examples/Quoter/Factory_Finder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Quoter/Factory_Finder.cpp')
-rw-r--r--TAO/examples/Quoter/Factory_Finder.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/TAO/examples/Quoter/Factory_Finder.cpp b/TAO/examples/Quoter/Factory_Finder.cpp
index 370424c78cc..05f6acada8d 100644
--- a/TAO/examples/Quoter/Factory_Finder.cpp
+++ b/TAO/examples/Quoter/Factory_Finder.cpp
@@ -52,7 +52,7 @@ Quoter_Factory_Finder_Server::init (int argc,
CORBA::Environment &ACE_TRY_ENV)
{
const char *exception_message = "Null Message";
-
+
ACE_TRY
{
exception_message = "While ORB_Manager::init";
@@ -170,9 +170,11 @@ Quoter_Factory_Finder_Server::run (CORBA::Environment &ACE_TRY_ENV)
ACE_DEBUG ((LM_DEBUG,
"\nQuoter Example: Quoter_Factory_Finder_Server is running\n"));
- orb_manager_.orb()->run (ACE_TRY_ENV);
- ACE_CHECK_RETURN (-1);
-
+ if (orb_manager_.orb()->run () == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "%p\n",
+ "run"),
+ -1);
return 0;
}
@@ -194,7 +196,7 @@ Quoter_Factory_Finder_Server::parse_args (void)
break;
default:
exit_code = 1;
- ACE_ERROR ((LM_ERROR,
+ ACE_ERROR ((LM_ERROR,
"%s: unknown arg, -%c\n",
this->argv_[0], char(opt)));
case '?':