ogr plugin error handling in master/3.x