From 7bfb69cc8210fb988396a2aed83b4c693b4b375a Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Wed, 20 Jul 2016 02:39:50 +0900 Subject: [PATCH] [IfNode] Fix the `ifnot` error message --- Sources/IfTag.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IfTag.swift b/Sources/IfTag.swift index 538ef70..8dae896 100644 --- a/Sources/IfTag.swift +++ b/Sources/IfTag.swift @@ -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]()