Skip to content

Commit

Permalink
fix merge re -S option
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Mar 25, 2024
1 parent 220d33d commit f23e65a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/subcommand/call_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,18 @@ int main_call(int argc, char** argv) {

// make sure we have some ref paths
if (ref_paths.empty()) {
if (!ref_sample.empty()) {
cerr << "error [vg call]: No paths with selected reference sample \"" << ref_sample << "\" found. "
if (!ref_sample_set.empty()) {
string sample_string;
if (ref_sample_set.size() == 1) {
sample_string = "sample \"" + *ref_sample_set.begin() + "\"";
} else {
sample_string = "samples \"";
for (const string& rsn : ref_sample_set) {
sample_string += (sample_string.length() > 9 ? " " : "") + rsn;
}
sample_string += "\"";
}
cerr << "error [vg call]: No paths with selected reference " << sample_string << " found. "
<< "Try using vg paths -M to see which samples are in your graph" << endl;
return 1;
}
Expand Down

1 comment on commit f23e65a

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

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

vg CI tests complete for branch rgfa2. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 16990 seconds

Please sign in to comment.