Skip to content
Permalink
Browse files

[processing] Better error reporting in point on surface

  • Loading branch information
m-kuhn committed Jul 17, 2017
1 parent 2b2d5e3 commit 246685b0cb08a27a1b7f7f6ed9be5ccf5be6ecac
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/PointOnSurface.py
@@ -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)

0 comments on commit 246685b

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