Skip to content

Commit

Permalink
fix(cli): make error message more informative when QC config is missing
Browse files Browse the repository at this point in the history
Resolves #577
  • Loading branch information
ivan-aksamentov committed Oct 26, 2021
1 parent b475cc8 commit 476a41f
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

0 comments on commit 476a41f

Please sign in to comment.