diff --git a/src/Template/Renderer.php b/src/Template/Renderer.php index e746d960..1de841cc 100644 --- a/src/Template/Renderer.php +++ b/src/Template/Renderer.php @@ -49,11 +49,9 @@ public function render($template, array $data = array()) } if (is_null($file) === true) { - $message = 'Template file "%s" not found.'; + $message = 'Template file "' . $name . '" not found.'; - $message = sprintf($message, $name); - - throw new \InvalidArgumentException($message); + throw new \InvalidArgumentException((string) $message); } return $this->extract($file, $data);