From d4fb8ed9c95ff1cc70d56d383112bedc57186825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 3 Apr 2018 23:05:17 +0200 Subject: [PATCH] Fixed error reporting --- src/map/wms.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/wms.cpp b/src/map/wms.cpp index eba77907..d62265ef 100644 --- a/src/map/wms.cpp +++ b/src/map/wms.cpp @@ -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; }