From f9c570e5c37bde18408c078529decedf2a1424f8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 6 Feb 2011 21:09:23 +0100 Subject: [PATCH] added a way for template name to be anything --- lib/Twig/Error.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Error.php b/lib/Twig/Error.php index fad3957..e85c587 100644 --- 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) { -- 1.7.2.5