Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve information text for a failed WMS connection
  • Loading branch information
m-kuhn committed Jun 20, 2014
1 parent c1c8aa6 commit f422fcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/wms/qgswmssourceselect.cpp
Expand Up @@ -468,8 +468,10 @@ void QgsWMSSourceSelect::on_btnConnect_clicked()
QgsWmsCapabilities caps;
if ( !caps.parseResponse( capDownload.response(), wmsSettings.parserSettings() ) )
{
QMessageBox msgBox( QMessageBox::Warning, tr( "WMS Provider" ), tr( "Failed to parse capabilities:\n" ), QMessageBox::Ok, this );
msgBox.setDetailedText( caps.lastError() );
QMessageBox msgBox( QMessageBox::Warning, tr( "WMS Provider" ),
tr( "The server you are trying to connect to does not seem to be a WMS server. Please check the URL." ),
QMessageBox::Ok, this );
msgBox.setDetailedText( tr( "Instead of the capabilities string that was expected, the following response has been received:\n\n%1" ).arg( caps.lastError() ) );
msgBox.exec();
return;
}
Expand Down

0 comments on commit f422fcc

Please sign in to comment.