summaryrefslogtreecommitdiff
path: root/src/map/vector_tile_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/vector_tile_data.cpp')
-rw-r--r--src/map/vector_tile_data.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/vector_tile_data.cpp b/src/map/vector_tile_data.cpp
index e34ed94188..48b46059a5 100644
--- a/src/map/vector_tile_data.cpp
+++ b/src/map/vector_tile_data.cpp
@@ -30,18 +30,18 @@ void VectorTileData::parse() {
return;
}
-// try {
+ try {
// Parsing creates state that is encapsulated in TileParser. While parsing,
// the TileParser object writes results into this objects. All other state
// is going to be discarded afterwards.
parser->parse();
-// } catch (const std::exception& ex) {
-//#if defined(DEBUG)
-// fprintf(stderr, "[%p] exception [%d/%d/%d]... failed: %s\n", this, id.z, id.x, id.y, ex.what());
-//#endif
-// cancel();
-// return;
-// }
+ } catch (const std::exception& ex) {
+#if defined(DEBUG)
+ fprintf(stderr, "[%p] exception [%d/%d/%d]... failed: %s\n", this, id.z, id.x, id.y, ex.what());
+#endif
+ cancel();
+ return;
+ }
if (state != State::obsolete) {
state = State::parsed;