syntax error on empty variable tag

This commit is contained in:
Ilya Puchka
2019-01-12 22:10:21 +00:00
parent 0f18d43d9e
commit 693565ddda
4 changed files with 15 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ enum Filter: FilterType {
switch self {
case let .simple(filter):
if !arguments.isEmpty {
throw TemplateSyntaxError("cannot invoke filter with an argument")
throw TemplateSyntaxError("Can't invoke filter with an argument")
}
return try filter(value)
case let .arguments(filter):