merged branch pgodel/patch-1 (PR #4238)
Commits -------190024a
Provide a clearer error message when message in trans tag is not a simple text. Discussion ---------- Clearer error message when message in trans tag is not a simple text Provide a clearer error message when message in trans tag is not a simple text. --------------------------------------------------------------------------- by travisbot at 2012-05-09T13:34:52Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1285069) (merged190024ae
intoe54f4e46
).
This commit is contained in:
commit
818005232c
@ -62,7 +62,7 @@ class TransTokenParser extends \Twig_TokenParser
|
||||
$body = $this->parser->subparse(array($this, 'decideTransFork'), true);
|
||||
|
||||
if (!$body instanceof \Twig_Node_Text && !$body instanceof \Twig_Node_Expression) {
|
||||
throw new \Twig_Error_Syntax('A message must be a simple text');
|
||||
throw new \Twig_Error_Syntax('A message inside a trans tag must be a simple text');
|
||||
}
|
||||
|
||||
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
|
||||
|
Reference in New Issue
Block a user