]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractLung.cxx
more refined abort-on-exception mechanism
[clitk.git] / segmentation / clitkExtractLung.cxx
index 36fa4e84be349ebc4277f5d9eadc954cc90df487..1b5fda927f4caf78a975afac9617b85ce58780e1 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::cerr << e.what() << std::endl;
-  }
+  CLITK_TRY_CATCH_EXIT(filter->Update());
 
   return EXIT_SUCCESS;
 } // This is the end, my friend