diff --git a/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java b/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java index c1f746d261..8d35978860 100644 --- a/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java +++ b/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java @@ -192,7 +192,7 @@ public Optional getUniqueAttribute(final String key) { switch(atts.size()) { case 0 : return Optional.empty(); case 1 : return Optional.of(atts.get(0)); - default : throw new IllegalArgumentException("getAttr cannot be called with key="+key+" because it contains more than one value " + String.join(", ", atts)); + default : throw new IllegalArgumentException("getUniqueAttribute cannot be called with key="+key+" because it contains more than one value " + String.join(", ", atts)); } }