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()
|
||||
{
|
||||
$eleveManager = $this->getService(EleveManager::class);
|
||||
return $eleveManager->view();
|
||||
try {
|
||||
$eleveManager = $this->getService(EleveManager::class);
|
||||
return $eleveManager->view();
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception reçue : '. $e->getMessage() ."\n";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue