Skip to content

Commit

Permalink
Merge pull request #35345 from m-kuhn/wrong_arg_count_in_server_error…
Browse files Browse the repository at this point in the history
…_messages

Fix argument count in server error messages
  • Loading branch information
m-kuhn committed Mar 25, 2020
2 parents 30c9086 + 7d59470 commit 9b0db6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/services/wms/qgswmsparameters.cpp
Expand Up @@ -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 );
}

Expand All @@ -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 );
}

Expand Down Expand Up @@ -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 );
}

Expand All @@ -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 );
}

Expand All @@ -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 );
}

Expand Down

0 comments on commit 9b0db6e

Please sign in to comment.