mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Merge pull request #607 from mapbox/catch-all-exceptions-in-decode
decode: catch all exceptions
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ void handle(std::string message, int z, unsigned x, unsigned y, std::set<std::st
|
|||||||
fprintf(stderr, "Couldn't parse tile %d/%u/%u\n", z, x, y);
|
fprintf(stderr, "Couldn't parse tile %d/%u/%u\n", z, x, y);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
} catch (protozero::unknown_pbf_wire_type_exception e) {
|
} catch (std::exception const& e) {
|
||||||
fprintf(stderr, "PBF decoding error in tile %d/%u/%u\n", z, x, y);
|
fprintf(stderr, "PBF decoding error in tile %d/%u/%u\n", z, x, y);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user