Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-07-02 19:36:01 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:20:18 +0300
commit5ebfd29c0dc9b0374c9aae684db8e057a5862caa (patch)
tree5a21676e164ddca0807fb9bebb8ef845f65c554f /map/feature_vec_model.cpp
parentdd8c96cfb3a6c97eb959f2df76b3deabb1a432f1 (diff)
- Take care about Reader exceptions;
- Avoid code duplicating in framework.cpp;
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r--map/feature_vec_model.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp
index 616ce07958..fa275398e9 100644
--- a/map/feature_vec_model.cpp
+++ b/map/feature_vec_model.cpp
@@ -29,7 +29,11 @@ void FeaturesFetcher::InitClassificator()
}
catch (FileAbsentException const & e)
{
- LOG(LERROR, ("Classificator not found ", e.what()));
+ LOG(LERROR, ("Classificator not found: ", e.what()));
+ }
+ catch (Reader::Exception const & e)
+ {
+ LOG(LERROR, ("Classificator read error: ", e.what()));
}
}
@@ -39,13 +43,9 @@ void FeaturesFetcher::AddMap(ReaderT const & file)
{
m_multiIndex.Add(file);
}
- catch (Reader::OpenException const & e)
- {
- LOG(LERROR, ("Data file not found: ", e.what()));
- }
catch (Reader::Exception const & e)
{
- LOG(LCRITICAL, ("Unknown error while reading file: ", e.what()));
+ LOG(LERROR, ("Data file adding error: ", e.what()));
}
}