More useful template missing error

This commit is contained in:
Andy Miller
2014-10-30 16:36:14 -06:00
parent 051a7e66f6
commit f2638f17c3

View File

@@ -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;