mx karma improved error message

This commit is contained in:
kremsy 2017-06-28 14:33:05 +02:00
parent c7a50ff8cd
commit 884d0306dd

View File

@ -269,8 +269,14 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
$this->activateSession($mxKarmaCode);
} else {
Logger::logError("Error while authenticating on Mania-Exchange Karma");
// TODO remove temp trigger
$this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . json_encode($data->data->message));
if($data->data->message == "invalid server"){
Logger::log("You need to get a Karma Key from MX with registering your server");
}else{
// TODO remove temp trigger
$this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . json_encode($data->data->message));
}
$this->mxKarma['connectionInProgress'] = false;
}
});