[QGIS-Developer] Detailed error information from processing.run
Etienne Trimaille
etienne.trimaille at gmail.com
Fri Oct 18 05:08:06 PDT 2019
You need to create your own QgsProcessingFeedback object instead of using
the default feedback.
Check this answer: https://gis.stackexchange.com/a/310947/24505
Le ven. 18 oct. 2019 à 12:26, Tejas L <tejvan at live.com> a écrit :
> Hello Devs,
>
> I would like to get a detailed error messages when processing.run fails.
> For: e.g. in code like ths
>
> try:
> buffered_layer = processing.run(..., context, feedback)['OUTPUT']
> except QgsProcessingException as e:
> print (e) // 'There were errors executing the algorithm.'
>
> The exception message is very generic. The processing log window does show
> a more detailed message like: "GEOS processing error: intersection failed".
>
> Could the detailed message also be made available in the exception?
>
> Regards,
> Tej
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191018/d61d4d9f/attachment.html>
More information about the QGIS-Developer
mailing list