Skip to content

Commit c7dd9cc

Browse files
committed
Extended the 'unknown entry type' error message by the bibtex key in order to make it easier for the user to find the problematic entry.
1 parent 3568be0 commit c7dd9cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/sf/jabref/imports/BibtexParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,8 @@ public void checkEntryTypes(ParserResult _pr) {
979979
// "+be.getType().getName());
980980
_pr
981981
.addWarning(Globals.lang("unknown entry type") + ": "
982-
+ be.getType().getName() + ". " + Globals.lang("Type set to 'other'")
982+
+ be.getType().getName() + ":" + be.getField(BibtexFields.KEY_FIELD)
983+
+ " . " + Globals.lang("Type set to 'other'")
983984
+ ".");
984985
be.setType(BibtexEntryType.OTHER);
985986
}

0 commit comments

Comments
 (0)