better error message on addmap

This commit is contained in:
Steffen Schröder 2014-06-21 22:40:29 +02:00
parent 41df9efdbf
commit a9c509c8e9

View File

@ -322,7 +322,7 @@ class MapManager implements CallbackListener {
try {
$this->maniaControl->client->checkMapForCurrentServerParams($relativeMapFileName);
} catch (InvalidMapException $e) {
$this->maniaControl->chat->sendError('Wrong MapType or not validated!', $login);
$this->maniaControl->chat->sendException($e, $login);
return;
}