Skip to content

Commit

Permalink
[f-sweep-in-mult-pops] genmap - fixed issue with catching stream fail…
Browse files Browse the repository at this point in the history
…ure exception
  • Loading branch information
notestaff committed Feb 3, 2016
1 parent 79d3502 commit 7124dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosi/genmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ GenMap::GenMap( const boost::filesystem::path& fname, const len_bp_t length_ ):
readFrom( f );
} catch( const std::ifstream::failure& e ) {
BOOST_THROW_EXCEPTION( cosi_io_error() << boost::errinfo_nested_exception( boost::copy_exception( e ) ) );
}
} catch( const std::exception& e ) {
BOOST_THROW_EXCEPTION( cosi_io_error() << boost::errinfo_nested_exception( boost::copy_exception( e ) ) );
}
} catch( boost::exception& e ) {
e << boost::errinfo_file_name( fname.string() )
<< error_msg3( "Error reading genetic map file" );
Expand Down

0 comments on commit 7124dc7

Please sign in to comment.