]> Creatis software - clitk.git/blobdiff - tools/clitkSetBackground.cxx
more refined abort-on-exception mechanism
[clitk.git] / tools / clitkSetBackground.cxx
index 04b814bf0f69e01f4ec179ee76cdb77b4a9e6e9a..b70799990b4044f0db55c468fb831bdf41d9742f 100644 (file)
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
 ===========================================================================**/
 
-/* =================================================
- * @file   clitkSetBackground.cxx
- * @author
- * @date
- *
- * @brief
- *
- ===================================================*/
-
-
 // clitk
 #include "clitkSetBackground_ggo.h"
 #include "clitkIO.h"
@@ -44,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