mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
start using pocketmine/errorhandler
This commit is contained in:
@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\thread;
|
||||
|
||||
use pocketmine\errorhandler\ErrorToExceptionHandler;
|
||||
use pocketmine\Server;
|
||||
use function error_reporting;
|
||||
|
||||
@ -68,7 +69,7 @@ trait CommonThreadPartsTrait{
|
||||
error_reporting(-1);
|
||||
$this->registerClassLoader();
|
||||
//set this after the autoloader is registered
|
||||
\ErrorUtils::setErrorExceptionHandler();
|
||||
ErrorToExceptionHandler::set();
|
||||
$this->onRun();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user