log erros into file
This commit is contained in:
parent
ebe1fa2aa6
commit
394bf6d859
@ -1,5 +1,6 @@
|
||||
<?php namespace SokoWeb\Response;
|
||||
|
||||
use DateTime;
|
||||
use ErrorException;
|
||||
use Exception;
|
||||
use SokoWeb\Interfaces\Response\IRedirect;
|
||||
@ -94,6 +95,7 @@ class HttpResponse
|
||||
$response = call_user_func([$controller, $handler[1]]);
|
||||
} catch (Exception $exception) {
|
||||
$this->dbConnection->rollback();
|
||||
error_log($exception);
|
||||
$this->render500($exception);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user