fixed a bug
This commit is contained in:
parent
06980c949e
commit
10fe4c3e7e
@ -555,7 +555,9 @@ class MapManager implements CallbackListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add map to map list
|
// Add map to map list
|
||||||
if (!$this->maniaControl->client->insertMap($mapFileName)) {
|
try {
|
||||||
|
$this->maniaControl->client->insertMap($mapFileName);
|
||||||
|
} catch(\Exception $e) {
|
||||||
$this->maniaControl->chat->sendError("Couldn't add map to match settings!", $login);
|
$this->maniaControl->chat->sendError("Couldn't add map to match settings!", $login);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user