X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLung.cxx;h=1b5fda927f4caf78a975afac9617b85ce58780e1;hb=ad13cf07dde9cf2b43bf902c3da442e1c4d751f6;hp=36fa4e84be349ebc4277f5d9eadc954cc90df487;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/segmentation/clitkExtractLung.cxx b/segmentation/clitkExtractLung.cxx index 36fa4e8..1b5fda9 100644 --- a/segmentation/clitkExtractLung.cxx +++ b/segmentation/clitkExtractLung.cxx @@ -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