Skip to content
Permalink
Browse files

Fix argument count in server error messages

Warnings like:

    QString::arg: 1 argument(s) missing in %1 ('%2') cannot be converted into a rectangle
  • Loading branch information
m-kuhn committed Mar 25, 2020
1 parent e723800 commit 7d59470c066f7e0eaf2f60f7ca496fbbc30c08ac
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 7d59470

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