Add an exception result
This commit is contained in:
parent
eabc7168a9
commit
775b24f184
1 changed files with 6 additions and 2 deletions
|
@ -14,7 +14,11 @@ class ElevesAction extends YesWikiAction
|
||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$eleveManager = $this->getService(EleveManager::class);
|
$eleveManager = $this->getService(EleveManager::class);
|
||||||
return $eleveManager->view();
|
return $eleveManager->view();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo 'Exception reçue : '. $e->getMessage() ."\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue