mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
[processing] Better error reporting in point on surface
This commit is contained in:
parent
2b2d5e3637
commit
246685b0cb
@ -83,7 +83,7 @@ class PointOnSurface(QgisAlgorithm):
|
||||
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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user