projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3377d56
)
fixed exception
author
Fabien Potencier
<fabien.potencier@gmail.com>
Fri, 14 Oct 2011 23:10:30 +0000 (
01:10
+0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Fri, 14 Oct 2011 23:10:30 +0000 (
01:10
+0200)
lib/Twig/Template.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Template.php
b/lib/Twig/Template.php
index
fa502fa
..
63bcc50
100644
(file)
--- 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