]> Creatis software - clitk.git/blobdiff - tools/clitkSetBackground.cxx
more refined abort-on-exception mechanism
[clitk.git] / tools / clitkSetBackground.cxx
index a44b4eb00f7c9599231a1adf91947e9d2f04018c..b70799990b4044f0db55c468fb831bdf41d9742f 100644 (file)
@@ -34,7 +34,7 @@ int main(int argc, char * argv[])
   clitk::SetBackgroundGenericFilter::Pointer genericFilter=clitk::SetBackgroundGenericFilter::New();
 
   genericFilter->SetArgsInfo(args_info);
-  genericFilter->Update();
+  CLITK_TRY_CATCH_EXIT(genericFilter->Update());
 
   return EXIT_SUCCESS;
 }// end main