Skip to content

Commit 246685b

Browse files
committedJul 17, 2017
[processing] Better error reporting in point on surface
1 parent 2b2d5e3 commit 246685b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/qgis/PointOnSurface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def processAlgorithm(self, parameters, context, feedback):
8383
if input_geometry:
8484
output_geometry = input_geometry.pointOnSurface()
8585
if not output_geometry:
86-
raise QgsProcessingException(self.tr('Error calculating point on surface. Check the message log for GEOS errors.'))
86+
raise QgsProcessingException(self.tr('Error calculating point on surface: `{error_message}`'.format(error_message=output_geometry.error())))
8787

8888
output_feature.setGeometry(output_geometry)
8989

0 commit comments

Comments
 (0)
Please sign in to comment.