Skip to content

Commit

Permalink
Translate error message in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 17, 2017
1 parent 2a91452 commit 592033a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,8 @@ namespace QgsWms
QStringList queryLayers = mWmsParameters.queryLayersNickname();
if ( queryLayers.isEmpty() )
{
throw QgsBadRequestException( QStringLiteral( "LayerNotQueryable" ),
QStringLiteral( "QUERY_LAYERS parameter is required for GetFeatureInfo" ) );
QString msg = QObject::tr( "QUERY_LAYERS parameter is required for GetFeatureInfo" );
throw QgsBadRequestException( QStringLiteral( "LayerNotQueryable" ), msg );
}

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

0 comments on commit 592033a

Please sign in to comment.