mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Fixed error reporting
This commit is contained in:
parent
fb16c3f2db
commit
d4fb8ed9c9
@ -202,11 +202,11 @@ bool WMS::parseCapabilities(const QString &path, const Setup &setup)
|
|||||||
const Layer &layer = ctx.layers.at(i);
|
const Layer &layer = ctx.layers.at(i);
|
||||||
|
|
||||||
if (!layer.isDefined) {
|
if (!layer.isDefined) {
|
||||||
_errorString = ctx.setup.layer() + ": layer not provided";
|
_errorString = layer.name + ": layer not provided";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!layer.hasStyle) {
|
if (!layer.hasStyle) {
|
||||||
_errorString = ctx.setup.style() + ": style not provided for layer "
|
_errorString = layer.style + ": style not provided for layer "
|
||||||
+ layer.name;
|
+ layer.name;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user