This is normally used to find error codes when SQL executions fail (please see https://gdal.org/python/osgeo.ogr-pysrc.html#DataSource.ExecuteSQL)