From 188e941768f5c0eb1b86fc03bedb1e94fb559636 Mon Sep 17 00:00:00 2001 From: Maksim Andrianov Date: Thu, 25 Oct 2018 11:42:42 +0300 Subject: [PATCH] [generator] CHECK -> LOG. --- generator/locality_sorter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/generator/locality_sorter.cpp b/generator/locality_sorter.cpp index 6b0393bea8..6d930373db 100644 --- a/generator/locality_sorter.cpp +++ b/generator/locality_sorter.cpp @@ -135,9 +135,12 @@ public: vector hullPoints = hull.Points(); holder.SetInner(); auto const id = fb2.GetMostGenericOsmId(); - CHECK(holder.TryToMakeStrip(hullPoints), - ("Error while building tringles for object with OSM Id:", id.GetSerialId(), - "Type:", id.GetType(), "points:", points, "hull:", hull.Points())); + if (!holder.TryToMakeStrip(hullPoints)) + { + LOG(LWARNING, ("Error while building tringles for object with OSM Id:", id.GetSerialId(), + "Type:", id.GetType(), "points:", points, "hull:", hull.Points())); + return 0; + } } } }