Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd2aaa5

Browse files
authoredApr 11, 2019
Fix backport: QgsServiceException::OGC_OPERATION_NOT_SUPPORTED does not exist
1 parent e6e4b86 commit dd2aaa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/server/services/wms/qgswms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace QgsWms
8989
const QString req = parameters.request();
9090
if ( req.isEmpty() )
9191
{
92-
throw QgsServiceException( QgsServiceException::OGC_OPERATION_NOT_SUPPORTED,
92+
throw QgsServiceException( QStringLiteral( "OperationNotSupported" ),
9393
QStringLiteral( "Please check the value of the REQUEST parameter" ), 501 );
9494
}
9595

@@ -152,7 +152,7 @@ namespace QgsWms
152152
else
153153
{
154154
// Operation not supported
155-
throw QgsServiceException( QgsServiceException::OGC_OPERATION_NOT_SUPPORTED,
155+
throw QgsServiceException( QStringLiteral( "OperationNotSupported" ),
156156
QString( "Request %1 is not supported" ).arg( req ), 501 );
157157
}
158158
}

0 commit comments

Comments
 (0)
Please sign in to comment.