From 7a06149681b917805c0cce74f2d40be9a668d982 Mon Sep 17 00:00:00 2001 From: Sarbjit Singh Date: Fri, 16 Mar 2018 23:26:57 +0530 Subject: [PATCH] Improved message in summary report for sample fields --- src/vcf/record.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vcf/record.cpp b/src/vcf/record.cpp index 6a4ab845f..769611c26 100644 --- a/src/vcf/record.cpp +++ b/src/vcf/record.cpp @@ -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 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};