Add an exception result

This commit is contained in:
mckmonster 2024-08-02 18:53:08 +02:00
parent eabc7168a9
commit 775b24f184

View file

@ -14,7 +14,11 @@ class ElevesAction extends YesWikiAction
public function run()
{
try {
$eleveManager = $this->getService(EleveManager::class);
return $eleveManager->view();
} catch (Exception $e) {
echo 'Exception reçue : '. $e->getMessage() ."\n";
}
}
}