]> Creatis software - clitk.git/blobdiff - segmentation/clitkMorphoMath.cxx
more refined abort-on-exception mechanism
[clitk.git] / segmentation / clitkMorphoMath.cxx
index 46e348971e8242433f42f7d6b755ec12c247278e..25c40df134f496ec960fab8db3032ae2dead8430 100644 (file)
@@ -36,11 +36,7 @@ int main(int argc, char * argv[]) {
   // Passing the arguments to the generic filter
   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