start using pocketmine/errorhandler

This commit is contained in:
Dylan K. Taylor
2020-05-10 13:04:40 +01:00
parent 65e359584e
commit 3299bc4023
6 changed files with 44 additions and 5 deletions

View File

@ -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();
}