Skip to content

Commit 592033a

Browse files
committed
Translate error message in exception
1 parent 2a91452 commit 592033a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/services/wms/qgswmsrenderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ namespace QgsWms
909909
QStringList queryLayers = mWmsParameters.queryLayersNickname();
910910
if ( queryLayers.isEmpty() )
911911
{
912-
throw QgsBadRequestException( QStringLiteral( "LayerNotQueryable" ),
913-
QStringLiteral( "QUERY_LAYERS parameter is required for GetFeatureInfo" ) );
912+
QString msg = QObject::tr( "QUERY_LAYERS parameter is required for GetFeatureInfo" );
913+
throw QgsBadRequestException( QStringLiteral( "LayerNotQueryable" ), msg );
914914
}
915915

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

0 commit comments

Comments
 (0)