patch_for_1499.txt
1 |
Index: src/providers/wms/qgswmsprovider.cpp |
---|---|
2 |
=================================================================== |
3 |
--- src/providers/wms/qgswmsprovider.cpp (revision 9954) |
4 |
+++ src/providers/wms/qgswmsprovider.cpp (working copy) |
5 |
@@ -1698,9 +1698,13 @@ |
6 |
{ |
7 |
mError = tr( "Request is for an optional operation that is not supported by the server." ); |
8 |
} |
9 |
+ else if ( seCode == 0 ) // not one of the specific errors in the spec. |
10 |
+ { |
11 |
+ mError = tr( "(No error code was reported)" ); |
12 |
+ } |
13 |
else |
14 |
{ |
15 |
- mError = tr( "(Unknown error code from a post-1.3 WMS server)" ); |
16 |
+ mError = seCode + " " + tr( "(Unknown error code from a post-1.3 WMS server)" ); // show the code sent plus QGIS msg txt |
17 |
} |
18 |
|
19 |
mError += "\n" + tr( "The WMS vendor also reported: " ); |