Skip to content

Commit

Permalink
Merge pull request #579 from nextstrain/fix/input-qc-config-silent-fa…
Browse files Browse the repository at this point in the history
…ilure
  • Loading branch information
ivan-aksamentov authored Oct 26, 2021
2 parents b475cc8 + 476a41f commit f16aa95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nextclade_cli/src/io/getInputPaths.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ namespace Nextclade {
"Either `--input-dataset` or `--input-tree` is required. Cannot proceed without reference tree.");
}

if (cliParams->inputDataset.empty() && inputQcConfig.empty()) {
throw ErrorFatal(
"Either `--input-dataset` or `--input-qc-config` is required. Cannot proceed without QC config.");
}

if (!cliParams->inputDataset.empty()) {
auto inputDataset = std::string{cliParams->inputDataset};

Expand Down

1 comment on commit f16aa95

@vercel
Copy link

@vercel vercel bot commented on f16aa95 Oct 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.