forked from organicmaps/organicmaps
Catch all possible RootException based exceptions in routing thread
This commit is contained in:
parent
ccd4774e5d
commit
ed6376de4c
1 changed files with 2 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue