Fixed crash when crashing while generating a crashdump due to crashing

This commit is contained in:
Dylan K. Taylor 2017-04-30 15:59:53 +01:00
parent 971703a618
commit 0a52e210db

View File

@ -2081,7 +2081,8 @@ class Server{
try{ try{
$dump = new CrashDump($this); $dump = new CrashDump($this);
}catch(\Throwable $e){ }catch(\Throwable $e){
$this->logger->critical($this->getLanguage()->translateString("pocketmine.crash.error", $e->getMessage())); $this->logger->logException($e);
$this->logger->critical($this->getLanguage()->translateString("pocketmine.crash.error", [$e->getMessage()]));
return; return;
} }