diff options
Diffstat (limited to 'TAO/orbsvcs/tests')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/manual_start/client.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/manual_start/client.cpp b/TAO/orbsvcs/tests/ImplRepo/manual_start/client.cpp index b789f3e2276..507f97151b5 100644 --- a/TAO/orbsvcs/tests/ImplRepo/manual_start/client.cpp +++ b/TAO/orbsvcs/tests/ImplRepo/manual_start/client.cpp @@ -61,7 +61,15 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { int retval = 0; - orb = CORBA::ORB_init( argc, argv ); + try + { + orb = CORBA::ORB_init( argc, argv ); + } + catch(const CORBA::Exception& ex) + { + ex._tao_print_exception (ACE_TEXT ("client ORB init:")); + return 1; + } try { @@ -75,7 +83,15 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) retval = -1; } - orb->destroy(); + try + { + orb->destroy(); + } + catch(const CORBA::Exception& ex) + { + ex._tao_print_exception (ACE_TEXT ("client ORB destroy:")); + return 1; + } return retval; } |