Skip to content

Commit 2335c05

Browse files
committed
update error message for dict keys
1 parent f6f3563 commit 2335c05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/hubspot/jinjava/el/ext/AstDict.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public Object eval(Bindings bindings, ELContext context) {
5353
key = entryKey.eval(bindings, context).toString();
5454
} else {
5555
throw new TemplateStateException(
56-
"Dict key must be a string or identifier, was: " + entryKey
56+
"Dict key must be a string, or identifier, or a number, was: " + entryKey
5757
);
5858
}
5959

0 commit comments

Comments
 (0)