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:
parent
c64bc3fb81
commit
bf7cf61b85
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue