jonathangeiger / kohana-twig

A Kohana 3.0 module for integrating Twig
49 stars 23 forks source link

Stacktrace is always shown. #8

Closed ThePixelDeveloper closed 13 years ago

ThePixelDeveloper commented 14 years ago

In the __toSting method of Twig.php

try
{
    return $this->render();
}
catch (Exception $e)
{
    // Display the exception message
    Kohana::exception_handler($e);

    return '';
}

A stacktrace is always shown, which is probably not appropriate for production environments. I'm working on a patch.