Skip to content
Permalink
Browse files

Merge pull request #9453 from elpaso/bugfix-server-getfeatureinfo-err…

…or-code

[server] Fix error message reported when QUERY_LAYERS is missing
  • Loading branch information
elpaso committed Mar 10, 2019
2 parents d5de1d9 + e5797e6 commit 175ebae8adb7b29a6d0dfa87c600250f63904755
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -1028,7 +1028,7 @@ namespace QgsWms
if ( queryLayers.isEmpty() )
{
QString msg = QObject::tr( "QUERY_LAYERS parameter is required for GetFeatureInfo" );
throw QgsBadRequestException( QStringLiteral( "LayerNotQueryable" ), msg );
throw QgsBadRequestException( QStringLiteral( "LayerNotDefined" ), msg );
}

// The I/J parameters are Mandatory if they are not replaced by X/Y or FILTER or FILTER_GEOM

0 comments on commit 175ebae

Please sign in to comment.
You can’t perform that action at this time.