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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2018-05-08 18:39:12 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-05-15 17:30:30 +0300
commit0fe7f9806aad698d20a57a8e2afa3e9c7bf42d6d (patch)
tree24a6fadcfeee76b27c3fc451af8a10bc91f73040 /local_ads
parentcba514998ffdf7b0691f124353bdc60673d3a252 (diff)
Fixed disabled exceptions in FileReader for client-side code
Diffstat (limited to 'local_ads')
-rw-r--r--local_ads/statistics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp
index 5a3df4d24f..806a171f83 100644
--- a/local_ads/statistics.cpp
+++ b/local_ads/statistics.cpp
@@ -157,7 +157,7 @@ std::list<local_ads::Event> ReadEvents(std::string const & fileName)
try
{
- FileReader reader(fileName);
+ FileReader reader(fileName, true /* withExceptions */);
ReaderSource<FileReader> src(reader);
ReadPackedData(src, [&result](local_ads::Statistics::PackedData && data,
std::string const & countryId, int64_t mwmVersion,
@@ -462,7 +462,7 @@ void Statistics::ExtractMetadata(std::string const & fileName)
int64_t mwmVersion;
Timestamp baseTimestamp;
{
- FileReader reader(fileName);
+ FileReader reader(fileName, true /* withExceptions */);
ReaderSource<FileReader> src(reader);
ReadMetadata(src, countryId, mwmVersion, baseTimestamp);
}