]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractLymphStations.cxx
BUG seed_arg was used instead of seedRadius_arg
[clitk.git] / segmentation / clitkExtractLymphStations.cxx
index cf392f8d399a8ea866a53e8d28f7c6e6f2ac5f24..25b52894dea649c773802d5bed4662bb3a8f4c7b 100644 (file)
@@ -33,10 +33,12 @@ int main(int argc, char * argv[])
   FilterType::Pointer filter = FilterType::New();
 
   filter->SetArgsInfo(args_info);
-  filter->Update();
-
-  if (filter->HasError()) {
-    std::cout << filter->GetLastError() << std::endl;
+  
+  try {
+    filter->Update();
+  } catch(std::runtime_error e) {
+    std::cout << e.what() << std::endl;
+    return EXIT_FAILURE;
   }
 
   return EXIT_SUCCESS;