Skip to content

Commit

Permalink
Added parameter checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Dec 16, 2020
1 parent 1e91727 commit 9310cf3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tools/roc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ static void worker() {
void roc() {
get_roc = !config.roc_file.empty();

if (config.family_map.empty())
throw std::runtime_error("Missing option: --family-map");

if (config.family_map_query.empty())
throw std::runtime_error("Missing option: --family-map-query");

task_timer timer("Loading family mapping");
acc2fam = FamilyMapping(config.family_map);
timer.finish();
Expand Down

0 comments on commit 9310cf3

Please sign in to comment.