show correct host name when version check fails to find host

This commit is contained in:
Sebastian Dietrich 2016-02-14 18:47:41 +01:00
parent af88924ad9
commit 25a727a05a

View File

@ -78,7 +78,7 @@ void QgsVersionInfo::versionReplyFinished()
mErrorString = tr( "Connection refused - server may be down" );
break;
case QNetworkReply::HostNotFoundError:
mErrorString = tr( "The host name qgis.org could not be resolved. Check your DNS settings or contact your system administrator." );
mErrorString = tr( "The host name %1 could not be resolved. Check your DNS settings or contact your system administrator." ).arg( reply->request().url().host() );
break;
case QNetworkReply::NoError:
mErrorString = "";