osm2pgsql-dev / osm2pgsql

OpenStreetMap data to PostgreSQL converter
https://osm2pgsql.org
GNU General Public License v2.0
1.5k stars 474 forks source link

Handle erros in threads correctly #2184

Closed joto closed 5 months ago

joto commented 5 months ago

Generalization processing can run in multiple threads. If a thread throws an error that error was not caught correctly. The new code catches the error and reports it and sets a flag that the main thread knows an error happened, so it can terminate the program correctly.