update manager fix
This commit is contained in:
parent
cfa50168b3
commit
8cb6fdcceb
@ -303,8 +303,8 @@ class UpdateManager implements CallbackListener, CommandListener, TimerListener
|
||||
|
||||
$self = $this;
|
||||
$this->maniaControl->fileReader->loadFile($this->coreUpdateData->url, function ($updateFileContent, $error) use (&$self, &$updateData, &$player) {
|
||||
if (!$updateFileContent || !$error) {
|
||||
$message = "Update failed: Couldn't load Update zip!";
|
||||
if (!$updateFileContent || $error) {
|
||||
$message = "Update failed: Couldn't load Update zip! {$error}";
|
||||
if ($player) {
|
||||
$self->maniaControl->chat->sendError($message, $player);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user