returns error message on exception

这个提交包含在:
Adphi 2020-02-02 17:54:29 +01:00
父节点 411e9e800f
当前提交 4fecde9d9d
共有 1 个文件被更改,包括 2 次插入9 次删除

查看文件

@ -58,9 +58,8 @@ class OccController extends Controller
$this->application->run($input, $this->output);
return $this->output->fetch();
} catch (Exception $ex) {
exceptionHandler($ex);
} catch (Error $ex) {
exceptionHandler($ex);
$this->logger->logException($ex);
return "error: " . $ex->getMessage();
}
}
@ -87,9 +86,3 @@ class OccController extends Controller
}
}
function exceptionHandler($exception)
{
echo "An unhandled exception has been thrown:" . PHP_EOL;
echo $exception;
exit(1);
}