From 9e3002d46693fdf9d0d1579687799de3ccb21d88 Mon Sep 17 00:00:00 2001 From: Maxim Pimenov Date: Thu, 14 Jun 2018 12:26:11 +0300 Subject: [PATCH] Review fixes. --- platform/chunks_download_strategy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/chunks_download_strategy.cpp b/platform/chunks_download_strategy.cpp index 9632b74acc..5ce098268e 100644 --- a/platform/chunks_download_strategy.cpp +++ b/platform/chunks_download_strategy.cpp @@ -94,8 +94,8 @@ int64_t ChunksDownloadStrategy::LoadOrInitChunks(string const & fName, int64_t f FileReader r(fName, true /* with exceptions */); ReaderSource src(r); - int64_t const readedSize = ReadVarInt(src); - if (readedSize == fileSize) + int64_t const readSize = ReadVarInt(src); + if (readSize == fileSize) { // Load chunks. uint64_t const size = src.Size(); @@ -119,7 +119,7 @@ int64_t ChunksDownloadStrategy::LoadOrInitChunks(string const & fName, int64_t f return downloadedSize; } } - catch (RootException const & e) + catch (FileReader::Exception const & e) { // Usually - file not exists or Reader::Exception. LOG(LDEBUG, (e.Msg()));