From f2638f17c35e23904e982b50379c3a78287b70eb Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 30 Oct 2014 16:36:14 -0600 Subject: [PATCH] More useful template 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 636e9b578..d10636f8e 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('Resource not found.', 404, $e); + throw new \RuntimeException('Twig template not found: '.$template, 404, $e); } return $output;