Fix for incorrect template name when throwing missing error

This commit is contained in:
Andy Miller
2014-11-08 23:23:08 -07:00
parent fb549701ff
commit 21b1323d29

View File

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