]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractBones.cxx
more refined abort-on-exception mechanism
[clitk.git] / segmentation / clitkExtractBones.cxx
index 3e27657c57aa7250eaa9cd2c6950294ba3da05a4..4d3302fa502ca18f97eeabc6d1e03f0d8ffde396 100644 (file)
@@ -34,11 +34,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