diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2018-05-08 18:39:12 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-05-15 17:30:30 +0300 |
commit | 0fe7f9806aad698d20a57a8e2afa3e9c7bf42d6d (patch) | |
tree | 24a6fadcfeee76b27c3fc451af8a10bc91f73040 /ugc | |
parent | cba514998ffdf7b0691f124353bdc60673d3a252 (diff) |
Fixed disabled exceptions in FileReader for client-side code
Diffstat (limited to 'ugc')
-rw-r--r-- | ugc/storage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<uint8_t> buf; for (size_t i = 0; i < indexesSize; ++i) { |