Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use QgsServiceException::OGC_InvalidFormat when appropriate
  • Loading branch information
Éric Lemoine authored and nyalldawson committed Oct 26, 2019
1 parent 09921a1 commit f3df32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsgetlegendgraphics.cpp
Expand Up @@ -91,8 +91,8 @@ namespace QgsWms

if ( format == QgsWmsParameters::Format::NONE )
{
throw QgsServiceException( "InvalidFormat",
QStringLiteral( "Output format '%1' is not supported in the GetLegendGraphic request" ).arg( parameters.formatAsString() ) );
throw QgsBadRequestException( QgsServiceException::OGC_InvalidFormat,
QStringLiteral( "Output format '%1' is not supported in the GetLegendGraphic request" ).arg( parameters.formatAsString() ) );
}

// Get cached image
Expand Down

0 comments on commit f3df32d

Please sign in to comment.