1
0
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:
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);
if (!layer.isDefined) {
_errorString = ctx.setup.layer() + ": layer not provided";
_errorString = layer.name + ": layer not provided";
return false;
}
if (!layer.hasStyle) {
_errorString = ctx.setup.style() + ": style not provided for layer "
_errorString = layer.style + ": style not provided for layer "
+ layer.name;
return false;
}