Skip to content

Commit

Permalink
Translate error message in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Sep 29, 2017
1 parent 203e81f commit c5ed92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit c5ed92c

Please sign in to comment.