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 ReadEvents(std::string const & fileName) try { - FileReader reader(fileName); + FileReader reader(fileName, true /* withExceptions */); ReaderSource 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 src(reader); ReadMetadata(src, countryId, mwmVersion, baseTimestamp); } diff --git a/map/bookmark_helpers.cpp b/map/bookmark_helpers.cpp index 6e0cca2583..e98ad14256 100644 --- a/map/bookmark_helpers.cpp +++ b/map/bookmark_helpers.cpp @@ -32,7 +32,7 @@ std::unique_ptr LoadKmlFile(std::string const & file, bool useBin std::unique_ptr kmlData; try { - kmlData = LoadKmlData(FileReader(file), useBinary); + kmlData = LoadKmlData(FileReader(file, true /* withExceptions */), useBinary); } catch (std::exception const & e) { diff --git a/ugc/storage.cpp b/ugc/storage.cpp index c12f83c61c..7ef47d9b97 100644 --- a/ugc/storage.cpp +++ b/ugc/storage.cpp @@ -165,7 +165,7 @@ UGCUpdate Storage::GetUGCUpdate(FeatureID const & id) const auto const ugcFilePath = GetUGCFilePath(); try { - FileReader r(ugcFilePath); + FileReader r(ugcFilePath, true /* withExceptions */); r.Read(offset, buf.data(), size); } catch (FileReader::Exception const & exception) @@ -240,7 +240,7 @@ void Storage::Defragmentation() try { - FileReader r(ugcFilePath); + FileReader r(ugcFilePath, true /* withExceptions */); FileWriter w(tmpUGCFilePath, FileWriter::Op::OP_APPEND); uint64_t actualOffset = 0; for (size_t i = 0; i < indexesSize; ++i) @@ -287,7 +287,7 @@ string Storage::GetUGCToSend() const auto array = my::NewJSONArray(); auto const indexesSize = m_UGCIndexes.size(); auto const ugcFilePath = GetUGCFilePath(); - FileReader r(ugcFilePath); + FileReader r(ugcFilePath, true /* withExceptions */); vector buf; for (size_t i = 0; i < indexesSize; ++i) {