Skip to content

Commit

Permalink
Improve logging in ExtendedFuncotator
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jul 6, 2023
1 parent e206a48 commit e2fafd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public VcfHeaderDescriptor(String[] line, List<String> headerFields, List<DataSo
DataSourceFuncotationFactory source = dataSourceFuncotationFactories.stream().filter(x -> x.getName().equalsIgnoreCase(this.dataSource)).findFirst().orElseThrow();

if (!source.getSupportedFuncotationFields().contains(this.dataSource + "_" + this.sourceField)) {
throw new GATKException("Unable to find field: " + this.sourceField + " in "+ this.dataSource);
throw new GATKException("Unable to find field: " + this.sourceField + " in "+ this.dataSource + ". Known fields are: " + String.join(", ", source.getSupportedFuncotationFields()));
}
}
catch (NoSuchElementException e) {
Expand Down

0 comments on commit e2fafd7

Please sign in to comment.