From e2fafd7e4647ea8adbdbe8da992f8d2c4c7f4166 Mon Sep 17 00:00:00 2001 From: bbimber Date: Wed, 5 Jul 2023 20:31:28 -0700 Subject: [PATCH] Improve logging in ExtendedFuncotator --- .../java/com/github/discvrseq/walkers/ExtendedFuncotator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/discvrseq/walkers/ExtendedFuncotator.java b/src/main/java/com/github/discvrseq/walkers/ExtendedFuncotator.java index 0054d2fd..e9187214 100644 --- a/src/main/java/com/github/discvrseq/walkers/ExtendedFuncotator.java +++ b/src/main/java/com/github/discvrseq/walkers/ExtendedFuncotator.java @@ -220,7 +220,7 @@ public VcfHeaderDescriptor(String[] line, List headerFields, List 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) {