Skip to content

Commit

Permalink
fix error handling to return bool
Browse files Browse the repository at this point in the history
  • Loading branch information
tijyojwad committed Mar 20, 2024
1 parent 6b7859f commit 944b54b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dorado/alignment/Minimap2Index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ bool Minimap2Index::initialise(Minimap2Options options) {
mm_set_opt(0, &m_index_options.value(), &m_mapping_options.value());
if (mm_set_opt(options.mm2_preset.c_str(), &m_index_options.value(),
&m_mapping_options.value()) != 0) {
throw std::runtime_error("Cannot set mm2 options with preset: " + options.mm2_preset);
spdlog::error("Cannot set mm2 options with preset: {}", options.mm2_preset);
return false;
}

set_index_options(options);
Expand Down

0 comments on commit 944b54b

Please sign in to comment.