From a3ec2f7763cf2edd031b54fe39552a6eb88aea0d Mon Sep 17 00:00:00 2001 From: ledig Date: Thu, 7 Oct 2010 19:31:15 +0200 Subject: [PATCH] [FIX] now the exception will be reached further through the exception stack --- src/dataHandler/io/WReaderNIfTI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dataHandler/io/WReaderNIfTI.cpp b/src/dataHandler/io/WReaderNIfTI.cpp index fcfa181f5..993747ca3 100644 --- a/src/dataHandler/io/WReaderNIfTI.cpp +++ b/src/dataHandler/io/WReaderNIfTI.cpp @@ -167,7 +167,7 @@ boost::shared_ptr< WDataSet > WReaderNIfTI::load() catch( const std::exception& e ) { nifti_image_free( filedata ); - return boost::shared_ptr< WDataSet >( new WDataSet ); + throw e; } newGrid = boost::shared_ptr< WGridRegular3D >( new WGridRegular3D( -- GitLab