summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-25 01:02:41 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-25 01:02:41 +0000
commit259d2908e73710fb78f95cbdaf77a2c1d0ce09bb (patch)
treef1a93807acfd7e92909505352d47275307eb552c /TAO
parentdf8ffed0618c2184801c738563656e175ffa08bb (diff)
downloadATCD-259d2908e73710fb78f95cbdaf77a2c1d0ce09bb.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO')
-rw-r--r--TAO/tao/except.cpp4
-rw-r--r--TAO/tests/Cubit/TAO/svr.cpp6
2 files changed, 7 insertions, 3 deletions
diff --git a/TAO/tao/except.cpp b/TAO/tao/except.cpp
index d2a6f7eae3b..851eabbf7f5 100644
--- a/TAO/tao/except.cpp
+++ b/TAO/tao/except.cpp
@@ -451,7 +451,9 @@ print_exception (const CORBA::Exception *x,
// directly in the exception value so it can be queried.
ACE_DEBUG ((LM_ERROR, "(%P|%t) system exception, ID '%s'\n", id));
- ACE_DEBUG ((LM_ERROR, "(%P|%t) minor code = %#lx, completed = %s", x2->minor (),
+ ACE_DEBUG ((LM_ERROR,
+ "(%P|%t) minor code = %#lx, completed = %s",
+ x2->minor (),
(x2->completion () == CORBA::COMPLETED_YES) ? "YES" :
(x2->completion () == CORBA::COMPLETED_NO) ? "NO" :
(x2->completion () == CORBA::COMPLETED_MAYBE) ? "MAYBE" :
diff --git a/TAO/tests/Cubit/TAO/svr.cpp b/TAO/tests/Cubit/TAO/svr.cpp
index 7323fa034cb..b29bf59b00e 100644
--- a/TAO/tests/Cubit/TAO/svr.cpp
+++ b/TAO/tests/Cubit/TAO/svr.cpp
@@ -75,7 +75,7 @@ main (int argc, char *argv[])
}
// Initialize the Basic Object Adapter
- CORBA::POA_ptr oa_ptr = orb_ptr->POA_init (argc, argv );
+ CORBA::POA_ptr oa_ptr = orb_ptr->POA_init (argc, argv);
if (oa_ptr == 0)
ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) Unable to initialize the POA.\n"), 1);
@@ -145,5 +145,7 @@ main (int argc, char *argv[])
// Handle requests for this object until we're killed, or one of the
// methods asks us to exit.
- return orb_ptr->run ();
+ if (orb_ptr->run () == -1)
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "run"), -1);
+ return 0;
}