X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMorphoMath.cxx;h=25c40df134f496ec960fab8db3032ae2dead8430;hb=56ae68bbe5b50ad1ea8b6846f43f322d4aa36b70;hp=46e348971e8242433f42f7d6b755ec12c247278e;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;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