#80299Display all error messages in scheduler add/edit
Description
Currently only the exception with code 1305100019 is caught, other exceptions are not displayed or logged this way.
Hard to debug when exception occurs.
See code in SchedulerModuleController:
// Handle chosen action
switch ((string)$this->MOD_SETTINGS['function']) {
case 'scheduler':
$this->executeTasks();
switch ($this->CMD) {
case 'add':
case 'edit':
try {
// Try adding or editing
$content .= $this->editTaskAction();
$sectionTitle = $this->getLanguageService()->getLL('action.' . $this->CMD);
} catch (\Exception $e) {
if ($e->getCode() === 1305100019) {
// Invalid controller class name exception
$this->addMessage($e->getMessage(), FlashMessage::ERROR);
}
// An exception may also happen when the task to
// edit could not be found. In this case revert
// to displaying the list of tasks
// It can also happen when attempting to edit a running task
$content .= $this->listTasksAction();
}
break;