diff options
author | tatiana-kondakova <tatiana.kondakova@gmail.com> | 2018-04-25 13:09:58 +0300 |
---|---|---|
committer | Sergey Yershov <syershov@maps.me> | 2018-04-25 15:03:28 +0300 |
commit | b00e94f6b24a79446f2b6450586ccedd3f80542f (patch) | |
tree | df44f4fb38bb85d613e56ba54e65044aa77371fc /indexer/borders.cpp | |
parent | 7a28fe8cc39880025c83a81cf88797aa5f174b0d (diff) |
[geocoder] Do not catch Reader::Exception in Borders::Deserialize
Diffstat (limited to 'indexer/borders.cpp')
-rw-r--r-- | indexer/borders.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/indexer/borders.cpp b/indexer/borders.cpp index 81946e145a..dceb2eee8c 100644 --- a/indexer/borders.cpp +++ b/indexer/borders.cpp @@ -98,19 +98,10 @@ bool Borders::Border::IsPointInside(m2::PointD const & point) const return true; } -bool Borders::Deserialize(string const & filename) +void Borders::Deserialize(string const & filename) { - try - { - BordersVectorReader reader(filename); - auto const & records = reader.GetVector(); - DeserializeFromVec(records); - } - catch (Reader::Exception const & e) - { - LOG(LERROR, ("Error while reading file:", e.Msg())); - return false; - } - return true; + BordersVectorReader reader(filename); + auto const & records = reader.GetVector(); + DeserializeFromVec(records); } } // namespace indexer |