projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
bb7e422
)
added a way for template name to be anything
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 6 Feb 2011 20:09:23 +0000 (21:09 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 6 Feb 2011 20:09:23 +0000 (21:09 +0100)
lib/Twig/Error.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Error.php
b/lib/Twig/Error.php
index
fad3957
..
e85c587
100644
(file)
--- a/
lib/Twig/Error.php
+++ b/
lib/Twig/Error.php
@@
-112,7
+112,7
@@
class Twig_Error extends Exception
$this->message = $this->rawMessage;
if (null !== $this->filename) {
- $this->message .= sprintf(' in %s', $this->filename);
+ $this->message .= sprintf(' in %s', json_encode($this->filename));
}
if ($this->lineno >= 0) {