Skip to content

Commit

Permalink
[processing] Better error reporting in point on surface
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 17, 2017
1 parent 2b2d5e3 commit 246685b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/PointOnSurface.py
Expand Up @@ -83,7 +83,7 @@ def processAlgorithm(self, parameters, context, feedback):
if input_geometry:
output_geometry = input_geometry.pointOnSurface()
if not output_geometry:
raise QgsProcessingException(self.tr('Error calculating point on surface. Check the message log for GEOS errors.'))
raise QgsProcessingException(self.tr('Error calculating point on surface: `{error_message}`'.format(error_message=output_geometry.error())))

output_feature.setGeometry(output_geometry)

Expand Down

0 comments on commit 246685b

Please sign in to comment.