Skip to content
Permalink
Browse files

Throw exception if there is an SLD error

  • Loading branch information
mhugent committed Mar 28, 2012
1 parent c88c38c commit 145a18477bcbe4d17d0c52cd565000c1789e75c5
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/mapserver/qgssldparser.cpp
@@ -411,6 +411,10 @@ QgsFeatureRendererV2* QgsSLDParser::rendererFromUserStyle( const QDomElement& us

QString errorMessage;
QgsFeatureRendererV2* renderer = QgsFeatureRendererV2::loadSld( userStyleElement.parentNode(), vec->geometryType(), errorMessage );
if ( !renderer )
{
throw QgsMapServiceException( "SLD error", errorMessage );
}
return renderer;
}

0 comments on commit 145a184

Please sign in to comment.