Merge pull request #1345 from Cockatrice/login-error-message
Add more informative message on unrecognized login response
This commit is contained in:
commit
129a6983ed
1 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ void MainWindow::loginError(Response::ResponseCode r, QString reasonStr, quint32
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
QMessageBox::critical(this, tr("Error"), tr("Unknown login error: %1").arg(static_cast<int>(r)));
|
QMessageBox::critical(this, tr("Error"), tr("Unknown login error: %1").arg(static_cast<int>(r)) + tr("\nThis usually means that your client version is out of date, and the server sent a reply your client doesn't understand."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
actConnect();
|
actConnect();
|
||||||
|
@ -410,7 +410,7 @@ void MainWindow::registerError(Response::ResponseCode r, QString reasonStr, quin
|
||||||
QMessageBox::critical(this, tr("Error"), tr("Registration failed for a technical problem on the server."));
|
QMessageBox::critical(this, tr("Error"), tr("Registration failed for a technical problem on the server."));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
QMessageBox::critical(this, tr("Error"), tr("Unknown login error: %1").arg(static_cast<int>(r)));
|
QMessageBox::critical(this, tr("Error"), tr("Unknown registration error: %1").arg(static_cast<int>(r)) + tr("\nThis usually means that your client version is out of date, and the server sent a reply your client doesn't understand."));
|
||||||
}
|
}
|
||||||
actRegister();
|
actRegister();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue