From 6de8f8bd4368c0fa1b7d03b0ce29fef06bc0e80f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 20 Dec 2010 15:05:29 +0100 Subject: [PATCH] tweaked error message --- lib/Twig/Token.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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)); } } } -- 1.7.2.5