Skip to content
Permalink
Browse files

Merge pull request #35345 from m-kuhn/wrong_arg_count_in_server_error…

…_messages

Fix argument count in server error messages
  • Loading branch information
m-kuhn committed Mar 25, 2020
2 parents 30c9086 + 7d59470 commit 9b0db6e7905ac818316a4ec028a3ae2d83414bef
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/server/services/wms/qgswmsparameters.cpp
@@ -59,7 +59,7 @@ namespace QgsWms

if ( !ok )
{
const QString msg = QString( "%1 ('%2') cannot be converted into a list of geometries" ).arg( name( mName ), toString(), typeName() );
const QString msg = QString( "%1 ('%2') cannot be converted into a list of geometries" ).arg( name( mName ), toString() );
QgsServerParameterDefinition::raiseError( msg );
}

@@ -73,7 +73,7 @@ namespace QgsWms

if ( !ok )
{
const QString msg = QString( "%1 ('%2') cannot be converted into a rectangle" ).arg( name( mName ), toString(), typeName() );
const QString msg = QString( "%1 ('%2') cannot be converted into a rectangle" ).arg( name( mName ), toString() );
QgsServerParameterDefinition::raiseError( msg );
}

@@ -143,7 +143,7 @@ namespace QgsWms

if ( !ok )
{
const QString msg = QString( "%1 ('%2') cannot be converted into a list of colors" ).arg( name( mName ), toString(), typeName() );
const QString msg = QString( "%1 ('%2') cannot be converted into a list of colors" ).arg( name( mName ), toString() );
QgsServerParameterDefinition::raiseError( msg );
}

@@ -157,7 +157,7 @@ namespace QgsWms

if ( !ok )
{
const QString msg = QString( "%1 ('%2') cannot be converted into a list of int" ).arg( name( mName ), toString(), typeName() );
const QString msg = QString( "%1 ('%2') cannot be converted into a list of int" ).arg( name( mName ), toString() );
QgsServerParameterDefinition::raiseError( msg );
}

@@ -171,7 +171,7 @@ namespace QgsWms

if ( !ok )
{
const QString msg = QString( "%1 ('%2') cannot be converted into a list of float" ).arg( name( mName ), toString(), typeName() );
const QString msg = QString( "%1 ('%2') cannot be converted into a list of float" ).arg( name( mName ), toString() );
QgsServerParameterDefinition::raiseError( msg );
}

0 comments on commit 9b0db6e

Please sign in to comment.
You can’t perform that action at this time.