1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00

Fixed error reporting

This commit is contained in:
Martin Tůma 2018-04-03 23:05:17 +02:00
parent fb16c3f2db
commit d4fb8ed9c9

View File

@ -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;
} }