From ed6376de4c59d74a80f53eef0616af1c2881eb42 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Wed, 17 Jun 2015 15:36:57 +0300 Subject: [PATCH] Catch all possible RootException based exceptions in routing thread --- routing/async_router.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routing/async_router.cpp b/routing/async_router.cpp index 6adddc6379..dcb3cdb34b 100644 --- a/routing/async_router.cpp +++ b/routing/async_router.cpp @@ -159,10 +159,9 @@ void AsyncRouter::CalculateRouteImpl(TReadyCallback const & callback) SendStatistics(startPoint, startDirection, finalPoint, code, elapsedSec); } - catch (Reader::Exception const & e) + catch (RootException const & e) { - LOG(LERROR, - ("Routing index is absent or incorrect. Error while loading routing index:", e.Msg())); + LOG(LERROR, ("Exception happened while calculating route:", e.Msg())); code = IRouter::InternalError; SendStatistics(startPoint, startDirection, finalPoint, e.Msg());