]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractPatient.cxx
more refined abort-on-exception mechanism
[clitk.git] / segmentation / clitkExtractPatient.cxx
index 43a086388a9b138e1e75d3d57c31b74a7c1227d5..ebbd3ade15618efb6dfaad1a3834a9100edfb046 100644 (file)
@@ -33,11 +33,7 @@ int main(int argc, char * argv[]) {
   
   filter->SetArgsInfo(args_info);
   
-  try {
-    filter->Update();
-  } catch(std::runtime_error e) {
-    std::cout << e.what() << std::endl;
-  }
+  CLITK_TRY_CATCH_EXIT(filter->Update());
 
   return EXIT_SUCCESS;
 } // This is the end, my friend