From df47659e9de71a48a24f31ed0cc16a2674a06d43 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 15 Oct 2011 01:10:30 +0200 Subject: [PATCH] fixed exception --- lib/Twig/Template.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.2.5