Skip to content

Commit

Permalink
Fix backport: QgsServiceException::OGC_OPERATION_NOT_SUPPORTED does n…
Browse files Browse the repository at this point in the history
…ot exist
  • Loading branch information
rldhont committed Apr 11, 2019
1 parent 9d5fa5b commit 8ac6140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswms.cpp
Expand Up @@ -90,7 +90,7 @@ namespace QgsWms
const QString req = parameters.request();
if ( req.isEmpty() )
{
throw QgsServiceException( QgsServiceException::OGC_OPERATION_NOT_SUPPORTED,
throw QgsServiceException( QStringLiteral( "OperationNotSupported" ),
QStringLiteral( "Please check the value of the REQUEST parameter" ), 501 );
}

Expand Down Expand Up @@ -153,7 +153,7 @@ namespace QgsWms
else
{
// Operation not supported
throw QgsServiceException( QgsServiceException::OGC_OPERATION_NOT_SUPPORTED,
throw QgsServiceException( QStringLiteral( "OperationNotSupported" ),
QString( "Request %1 is not supported" ).arg( req ), 501 );
}
}
Expand Down

0 comments on commit 8ac6140

Please sign in to comment.