From: Leonardo Flórez-Valencia Date: Fri, 11 Nov 2016 02:11:30 +0000 (-0500) Subject: ... X-Git-Tag: v0.1~50 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=cpPlugins.git;a=commitdiff_plain;h=03d87a8f1acbcd697ca7a18a124fe3b659f7b045 ... --- diff --git a/appli/plugins/ExecutePipeline.cxx b/appli/plugins/ExecutePipeline.cxx index 623b74e..66aa246 100644 --- a/appli/plugins/ExecutePipeline.cxx +++ b/appli/plugins/ExecutePipeline.cxx @@ -73,17 +73,17 @@ int main( int argc, char* argv[] ) { workspace->Execute( ); } - catch( std::exception& err1 ) + catch( itk::ExceptionObject& err2 ) { std::cerr << std::endl << "********************************" << std::endl; - std::cerr << "Error caught: " << err1.what( ) << std::endl; + std::cerr << "Error caught: " << err2 << std::endl; std::cerr << "********************************" << std::endl; return( 1 ); } - catch( itk::ExceptionObject& err2 ) + catch( std::exception& err1 ) { std::cerr << std::endl << "********************************" << std::endl; - std::cerr << "Error caught: " << err2 << std::endl; + std::cerr << "Error caught: " << err1.what( ) << std::endl; std::cerr << "********************************" << std::endl; return( 1 ); }