From: Fabien Potencier Date: Fri, 14 Oct 2011 23:10:30 +0000 (+0200) Subject: fixed exception X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=df47659e9de71a48a24f31ed0cc16a2674a06d43;p=web%2Fkonrad%2Ftwig.git fixed exception --- diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index fa502fa..63bcc50 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -346,7 +346,7 @@ abstract class Twig_Template implements Twig_TemplateInterface return null; } - throw new Twig_Error_Runtime(sprintf('Item "%s" for "%s" does not exist', $item, $object)); + throw new Twig_Error_Runtime(sprintf('Key "%s" for array with keys "%s" does not exist', $item, implode(', ', array_keys($object)))); } // get some information about the object