Display error when Smarty throws an exception (fixes #130)
This commit is contained in:
parent
3e13be702e
commit
2cfe90bd2d
1 changed files with 6 additions and 1 deletions
|
@ -55,4 +55,9 @@ $app->get(
|
||||||
'/locale/{locale}',
|
'/locale/{locale}',
|
||||||
[$controller, 'locale']
|
[$controller, 'locale']
|
||||||
)->setName('locale');
|
)->setName('locale');
|
||||||
$app->run();
|
|
||||||
|
try {
|
||||||
|
$app->run();
|
||||||
|
} catch (\SmartyException $e) {
|
||||||
|
die('Smarty could not compile the template file: '.$e->getMessage());
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue