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:
Gavin Bisesi 2015-08-08 09:48:18 -04:00
parent c64bc3fb81
commit bf7cf61b85

View file

@ -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();