diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2011-10-03 21:02:32 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2011-10-03 21:02:32 +0000 |
commit | 4dcca24c609008f9fe8a4e01966702b8f4c08e61 (patch) | |
tree | 6bf00b87749636ef3ea7ec22a9b13d4dd2597378 /utils/nslist/nslist.cpp | |
parent | 8c7cc4d18ddf28a18a01fef53aaea68422b2fff2 (diff) | |
download | ATCD-alt_mapping_SAIC.tar.gz |
Merged version 94552 from main trunk into this branchalt_mapping_SAIC
Diffstat (limited to 'utils/nslist/nslist.cpp')
-rw-r--r-- | utils/nslist/nslist.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/utils/nslist/nslist.cpp b/utils/nslist/nslist.cpp index a37959d410a..6ac49370a10 100644 --- a/utils/nslist/nslist.cpp +++ b/utils/nslist/nslist.cpp @@ -361,6 +361,8 @@ namespace int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { + int err = 0; + try { // Contact the orb @@ -718,14 +720,23 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) ((showCtxIOR)? str.in () : ""))); list_context (root_nc.in (), 1); } - orb->destroy (); } catch (const CORBA::Exception& ex) { ex._tao_print_exception ("Exception in nslist"); + ++err; + } + + try + { orb->destroy (); - return -1; + } + catch (const CORBA::Exception& ex) + { + ACE_DEBUG ((LM_DEBUG, "\nError:\n")); + ex._tao_print_exception ("Exception in while shutting down"); + ++err; } - return 0; + return err; } |