Skip to content
Permalink
Browse files

Translate error message in exception

  • Loading branch information
pblottiere committed Sep 29, 2017
1 parent 203e81f commit c5ed92ca8d978945939eccf82a84a7bda9a4cf17
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/services/wms/qgswmsrenderer.cpp
@@ -1322,8 +1322,8 @@ namespace QgsWms

if ( !validLayer )
{
throw QgsBadRequestException( QStringLiteral( "LayerNotDefined" ),
QStringLiteral( "Layer '%1' not found" ).arg( queryLayer ) );
QString msg = QObject::tr( "Layer '%1' not found" ).arg( queryLayer );
throw QgsBadRequestException( QStringLiteral( "LayerNotDefined" ), msg );
}
}

0 comments on commit c5ed92c

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