From 674178f5874ef14fee6e6d52b68a7f4bf017fce3 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Wed, 19 Nov 2014 22:56:37 +0100 Subject: [PATCH] fixed exception text --- Net/src/POP3ClientSession.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Net/src/POP3ClientSession.cpp b/Net/src/POP3ClientSession.cpp index 1fd2f7e33..b6eadd577 100644 --- a/Net/src/POP3ClientSession.cpp +++ b/Net/src/POP3ClientSession.cpp @@ -196,7 +196,7 @@ void POP3ClientSession::retrieveMessage(int id, MailMessage& message) { std::string response; sendCommand("RETR", NumberFormatter::format(id), response); - if (!isPositive(response)) throw POP3Exception("Cannot get message list", response); + if (!isPositive(response)) throw POP3Exception("Cannot retrieve message", response); DialogInputStream sis(_socket); MailInputStream mis(sis); message.read(mis); @@ -208,7 +208,7 @@ void POP3ClientSession::retrieveMessage(int id, MailMessage& message, PartHandle { std::string response; sendCommand("RETR", NumberFormatter::format(id), response); - if (!isPositive(response)) throw POP3Exception("Cannot get message list", response); + if (!isPositive(response)) throw POP3Exception("Cannot retrieve message", response); DialogInputStream sis(_socket); MailInputStream mis(sis); message.read(mis, handler); @@ -220,7 +220,7 @@ void POP3ClientSession::retrieveMessage(int id, std::ostream& ostr) { std::string response; sendCommand("RETR", NumberFormatter::format(id), response); - if (!isPositive(response)) throw POP3Exception("Cannot get message list", response); + if (!isPositive(response)) throw POP3Exception("Cannot retrieve message", response); DialogInputStream sis(_socket); MailInputStream mis(sis); StreamCopier::copyStream(mis, ostr); @@ -231,7 +231,7 @@ void POP3ClientSession::retrieveHeader(int id, MessageHeader& header) { std::string response; sendCommand("TOP", NumberFormatter::format(id), "0", response); - if (!isPositive(response)) throw POP3Exception("Cannot get message list", response); + if (!isPositive(response)) throw POP3Exception("Cannot retrieve header", response); DialogInputStream sis(_socket); MailInputStream mis(sis); header.read(mis);