Skip to content

Commit

Permalink
ENH: report the exception before re-throwing
Browse files Browse the repository at this point in the history
See issue #66
  • Loading branch information
fedorov authored and hjmjohnson committed Dec 31, 2013
1 parent 1bf7f54 commit 58f2ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BRAINSCommonLib/GenericTransformImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ int WriteBothTransformsToDisk(const GenericTransformType::ConstPointer genericTr
}
catch( itk::ExceptionObject & excp )
{
std::cout << "Exception: " << excp << std::endl;
throw excp; // reohrow exception, handle in some other scope.
}
return 0;
Expand Down

0 comments on commit 58f2ee8

Please sign in to comment.