X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMorphoMath.cxx;h=25c40df134f496ec960fab8db3032ae2dead8430;hb=5a7da4aedae5c204bc55c187717193e5950f9a44;hp=46e348971e8242433f42f7d6b755ec12c247278e;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/segmentation/clitkMorphoMath.cxx b/segmentation/clitkMorphoMath.cxx old mode 100755 new mode 100644 index 46e3489..25c40df --- a/segmentation/clitkMorphoMath.cxx +++ b/segmentation/clitkMorphoMath.cxx @@ -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