osm_errors logic