Skip to content

Commit 9def825

Browse files
committed
add error information function
1 parent 6f7f1ba commit 9def825

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • src/main/java/fr/mrcoq/lib/multilanguageapi

src/main/java/fr/mrcoq/lib/multilanguageapi/Lang.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public List<String> getLocals() {
5252
return this.locals;
5353
}
5454

55+
public String getErrorInformation() {
56+
return getConfigName() + " (" + String.join(", ", getLocals()) + ")";
57+
}
58+
5559
/**
5660
* Get name to use into {@link #getFromName(String)}
5761
* @return

0 commit comments

Comments
 (0)