Index: qgswfssourceselect.cpp =================================================================== --- qgswfssourceselect.cpp (revision 13934) +++ qgswfssourceselect.cpp (working copy) @@ -159,6 +159,17 @@ return 1; //error } + // TODO: test against multiple services and exceptions + // + // WFS-1.0 specs contain an example of exception response at page 17 + // That one contains http://www.opengis.net/ogc as a namespace for the ServiceExceptionReport + // + QDomNodeList exlist = capabilitiesDocument.elementsByTagName( "ExceptionText" ); + if ( exlist.length() ) { + QDomElement ex = exlist.at( 0 ).toElement(); + QMessageBox::critical( 0, tr( "Error" ), ex.firstChild().nodeValue() ); + return 1; + } //get the elements