Properly shutdown in case of exception
This commit is contained in:
parent
f26665479e
commit
662c947953
|
@ -93,5 +93,6 @@ class Exception extends \Exception
|
|||
public static function ExceptionHandler($exception)
|
||||
{
|
||||
Logger::log($exception, Logger::FATAL_ERROR);
|
||||
Magic::shutdown();
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,8 @@ If not, see <http://www.gnu.org/licenses/>.
|
|||
/**
|
||||
* Various ways to load MadelineProto.
|
||||
*/
|
||||
|
||||
|
||||
if (!\file_exists(__DIR__.'/../vendor/autoload.php')) {
|
||||
echo 'You did not run composer update, using madeline.php'.PHP_EOL;
|
||||
if ($phar = \getenv('TRAVIS_PHAR')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user