diff options
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/Destroy/main.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Notify/Destroy/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/Notify/Destroy/main.cpp b/TAO/orbsvcs/tests/Notify/Destroy/main.cpp index 014e77822a6..ba8579a41f5 100644 --- a/TAO/orbsvcs/tests/Notify/Destroy/main.cpp +++ b/TAO/orbsvcs/tests/Notify/Destroy/main.cpp @@ -7,11 +7,11 @@ int ACE_TMAIN (int argc, char *argv[]) { - ACE_TRY_NEW_ENV + try { // Initialize the base class. Notify_Test_Client client; - client.init (argc, argv ACE_ENV_ARG_PARAMETER); + client.init (argc, argv); CosNotifyChannelAdmin::EventChannelFactory_ptr ecf = client.notify_factory (); @@ -23,12 +23,11 @@ ACE_TMAIN (int argc, char *argv[]) ACE_DEBUG((LM_DEBUG, "ECF destroyed.\n")); } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, ACE_TEXT("Error: \n")); + ex._tao_print_exception (ACE_TEXT("Error: \n")); return 1; } - ACE_ENDTRY; return 0; } |