From 67801f0fb8f25656f0960cefab1ad485a710cbf1 Mon Sep 17 00:00:00 2001 From: vng Date: Sat, 27 Oct 2012 13:43:47 +0300 Subject: Fix exception catching in download resume. --- platform/chunks_download_strategy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/chunks_download_strategy.cpp') 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())); } -- cgit v1.2.3