Commit a2964ec6 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: catch the ProcessAborted exception

parent 4d76ceb0
......@@ -517,7 +517,6 @@ int Application::ExecuteAndWriteOutput()
}
}
// TODO: only if no Stop() was called
this->AfterExecuteAndWriteOutputs();
m_Chrono.Stop();
......
......@@ -331,6 +331,10 @@ AppliThread
m_Application->GetLogger()->Fatal(string("Cannot open image ") + err.m_Filename + string(". ") + err.GetDescription() + string("\n"));
emit ExceptionRaised( err.what() );
}
catch(itk::ProcessAborted& err)
{
m_Application->GetLogger()->Info("Processing aborted\n");
}
catch(itk::ExceptionObject& err)
{
m_Application->GetLogger()->Debug("Caught itk::ExceptionObject during application execution:\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment