mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-10-02 14:00:08 -05:00
Add more informative message on unrecognized login response
When logging in and receiving a reply that isn't understood, show a more informative error message. `tr() + tr()` for better translation flexibility.
This commit is contained in:
@@ -331,7 +331,7 @@ void MainWindow::loginError(Response::ResponseCode r, QString reasonStr, quint32
|
||||
break;
|
||||
}
|
||||
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;
|
||||
}
|
||||
actConnect();
|
||||
|
||||
Reference in New Issue
Block a user