fix wrong error message

This commit is contained in:
nikic
2010-12-31 17:27:32 +01:00
committed by Fabien Potencier
parent 8fee70e3d1
commit 08a056cf31
+1 -1
View File
@@ -202,7 +202,7 @@ class Twig_Lexer implements Twig_LexerInterface
$this->moveCursor($match[0]);
if ($this->cursor >= $this->end) {
throw new Twig_Error_Syntax('Unexpected end of file: Unclosed ' . $this->state === self::STATE_BLOCK ? 'block' : 'variable');
throw new Twig_Error_Syntax('Unexpected end of file: Unclosed ' . ($this->state === self::STATE_BLOCK ? 'block' : 'variable'));
}
}