From: Fabien Potencier Date: Mon, 20 Dec 2010 14:05:29 +0000 (+0100) Subject: tweaked error message X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=6de8f8bd4368c0fa1b7d03b0ce29fef06bc0e80f;p=web%2Fkonrad%2Ftwig.git tweaked error message --- diff --git a/lib/Twig/Token.php b/lib/Twig/Token.php index b0c553b..71826a9 100644 --- a/lib/Twig/Token.php +++ b/lib/Twig/Token.php @@ -117,7 +117,7 @@ class Twig_Token $name = 'PUNCTUATION_TYPE'; break; default: - throw new Twig_Error_Syntax(sprintf('Token of type %s does not exist.', $type)); + throw new Twig_Error_Syntax(sprintf('Token of type "%s" does not exist.', $type)); } return $short ? $name : 'Twig_Token::'.$name; @@ -149,7 +149,7 @@ class Twig_Token case self::PUNCTUATION_TYPE: return 'punctuation'; default: - throw new Twig_Error_Syntax(sprintf('Token of type %s does not exist.', $type)); + throw new Twig_Error_Syntax(sprintf('Token of type "%s" does not exist.', $type)); } } }