diff --git a/index.php b/index.php index 191aed9..13a7686 100644 --- a/index.php +++ b/index.php @@ -55,4 +55,9 @@ $app->get( '/locale/{locale}', [$controller, 'locale'] )->setName('locale'); -$app->run(); + +try { + $app->run(); +} catch (\SmartyException $e) { + die('Smarty could not compile the template file: '.$e->getMessage()); +}