Skip to content

Commit

Permalink
Merge pull request #126 from srbcheema1/fix
Browse files Browse the repository at this point in the history
Improved message in summary report for sample fields
  • Loading branch information
Cristina Yenyxe Gonzalez Garcia committed Mar 22, 2018
2 parents b2fbdcd + 7a06149 commit 08c62b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vcf/record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ namespace ebi
check_sample_field_cardinality(values, meta_entry_properties[NUMBER], ploidy, expected_cardinality);
check_field_type(values, meta_entry_properties[TYPE]);
} catch (std::shared_ptr<Error> ex) {
std::string message = "Sample #" + std::to_string(i + 1) + " does not match the meta" + ex->message;
std::string message = "Sample #" + std::to_string(i + 1) + ", field " + meta_entry_properties[ID]
+ " does not match the meta" + ex->message;
std::string detailed_message = meta_entry_properties[ID] + "=" + subfield + ex->detailed_message;
throw new SamplesFieldBodyError{line, message, detailed_message, meta_entry_properties[ID],
expected_cardinality};
Expand Down

0 comments on commit 08c62b3

Please sign in to comment.