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 <[email protected]> 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 > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
