Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve error message when virus properties flag is missing #704

Merged
merged 1 commit into from
Jan 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/nextclade_cli/src/io/getInputPaths.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ namespace Nextclade {
"Either `--input-dataset` or `--input-qc-config` is required. Cannot proceed without QC config.");
}

if (cliParams->inputDataset.empty() && inputVirusJson.empty()) {
throw ErrorFatal(
"Either `--input-dataset` or `--input-virus-properties` is required. Cannot proceed without virus properties. "
"Note: the new required file `virus_properties.json` was introduced in version 1.10.0. You can obtain it from "
"the latest Nextclade dataset. See `nextclade dataset get --help` and "
"https://docs.nextstrain.org/projects/nextclade for more information");
}


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

Expand Down