update manager fix

This commit is contained in:
Steffen Schröder 2014-05-04 15:10:34 +02:00
parent cfa50168b3
commit 8cb6fdcceb

View File

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