Skip to content

Commit

Permalink
Notifying error when contig metadata does not fit ID+URL structure. #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristina Yenyxe Gonzalez Garcia committed Jan 7, 2015
1 parent 34d7a67 commit ed352e3
Show file tree
Hide file tree
Showing 3 changed files with 2,523 additions and 2,271 deletions.
8 changes: 7 additions & 1 deletion cpp/src/bioformats/vcf/vcf_v41.ragel
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@
fhold; fgoto meta_section_skip;
}

# contig metadata
action meta_contig_err {
ErrorPolicy::handle_fileformat_section_error(*this, "Error in contig metadata");
fhold; fgoto meta_section_skip;
}

# FILTER metadata
action meta_filter_err {
ErrorPolicy::handle_fileformat_section_error(*this, "Error in FILTER metadata");
Expand Down Expand Up @@ -410,7 +416,7 @@
("##FORMAT=<" meta_format ">" ) %(meta_format_read) $err(meta_format_err) |
("##INFO=<" meta_info ">" ) %(meta_info_read) $err(meta_info_err) |
("##assembly=" meta_assembly ) |
("##contig=<" meta_contig ">" ) |
("##contig=<" meta_contig ">" ) $err(meta_contig_err) |
("##SAMPLE=<" meta_sample ">" ) |
("##PEDIGREE=<" meta_pedigree ">" ) |
("##pedigreeDB=<" meta_pedigreeDB ">" ) |
Expand Down
Loading

0 comments on commit ed352e3

Please sign in to comment.