diff options
author | vng <viktor.govako@gmail.com> | 2012-10-27 14:43:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:46:19 +0300 |
commit | 67801f0fb8f25656f0960cefab1ad485a710cbf1 (patch) | |
tree | 01dd44508a1e075262f706ebfa92e3da936686a1 /platform/chunks_download_strategy.cpp | |
parent | 4d2d784943e2bb74735e203d5cc3629f68da9735 (diff) |
Fix exception catching in download resume.
Diffstat (limited to 'platform/chunks_download_strategy.cpp')
-rw-r--r-- | platform/chunks_download_strategy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/chunks_download_strategy.cpp b/platform/chunks_download_strategy.cpp index 042d94abd9..5c0cf1e281 100644 --- a/platform/chunks_download_strategy.cpp +++ b/platform/chunks_download_strategy.cpp @@ -73,7 +73,7 @@ void ChunksDownloadStrategy::SaveChunks(int64_t fileSize, string const & fName) w.Write(&m_chunks[0], sizeof(ChunkT) * m_chunks.size()); return; } - catch(FileWriter::Exception const & e) + catch (FileWriter::Exception const & e) { LOG(LERROR, (e.Msg())); } @@ -119,9 +119,9 @@ int64_t ChunksDownloadStrategy::LoadOrInitChunks( string const & fName, return downloadedSize; } } - catch(FileReader::Exception const & e) + catch (RootException const & e) { - // Usually - file not exists. + // Usually - file not exists. May be SourceOutOfBoundsException. LOG(LDEBUG, (e.Msg())); } |