]> Creatis software - clitk.git/blobdiff - tools/clitkBinarizeImage.cxx
oops!
[clitk.git] / tools / clitkBinarizeImage.cxx
index 0d5b7c2cda60fb5c2c39de5fcc97a235474154ba..7019c6c3bc775ddeac3780699b90b2417bfa3b9b 100644 (file)
@@ -35,7 +35,10 @@ int main(int argc, char * argv[])
   filter->SetArgsInfo(args_info);
   filter->Update();
 
-  return EXIT_SUCCESS;
-}// end main
+  if (filter->HasError()) {
+    std::cout << filter->GetLastError() << std::endl;
+  }
 
+  return EXIT_SUCCESS;
+} // This is the end, my friend
 //--------------------------------------------------------------------