From 21b1323d295b17d7d02af6540fdb5fc76f02ef4d Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sat, 8 Nov 2014 23:23:08 -0700 Subject: [PATCH] Fix for incorrect template name when throwing missing error --- system/src/Grav/Common/Twig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Twig.php b/system/src/Grav/Common/Twig.php index d10636f8e..acdf04bd0 100644 --- a/system/src/Grav/Common/Twig.php +++ b/system/src/Grav/Common/Twig.php @@ -240,7 +240,7 @@ class Twig try { $output = $this->twig->render($template, $twig_vars); } catch (\Twig_Error_Loader $e) { - throw new \RuntimeException('Twig template not found: '.$template, 404, $e); + throw new \RuntimeException($e->getRawMessage(), 404, $e); } return $output;