[IfNode] Fix the ifnot error message

This commit is contained in:
Syo Ikeda
2016-07-20 02:39:50 +09:00
parent 5007ba2c9a
commit 7bfb69cc82

View File

@@ -29,7 +29,7 @@ public class IfNode : NodeType {
public class func parse_ifnot(parser:TokenParser, token:Token) throws -> NodeType {
let components = token.components()
guard components.count == 2 else {
throw TemplateSyntaxError("'ifnot' statements should use the following 'if condition' `\(token.contents)`.")
throw TemplateSyntaxError("'ifnot' statements should use the following 'ifnot condition' `\(token.contents)`.")
}
let variable = components[1]
var trueNodes = [NodeType]()