tweaked error message

This commit is contained in:
Fabien Potencier
2010-12-20 15:05:29 +01:00
parent 8e96487ada
commit 6de8f8bd43
+2 -2
View File
@@ -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));
}
}
}