add ogr plugin error handling to master/3.x