From 9702cdaabac38bc2cb73061c4efa6451762a076e Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 17 Jul 2013 12:46:50 +0200 Subject: Code cleanup. Store error log in parsed response to avoid accessing parser internal data. --- src/net/imap/IMAPStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/imap/IMAPStore.cpp') diff --git a/src/net/imap/IMAPStore.cpp b/src/net/imap/IMAPStore.cpp index 4508f0e6..05eaf99c 100644 --- a/src/net/imap/IMAPStore.cpp +++ b/src/net/imap/IMAPStore.cpp @@ -191,7 +191,7 @@ void IMAPStore::noop() if (resp->isBad() || resp->response_done()->response_tagged()-> resp_cond_state()->status() != IMAPParser::resp_cond_state::OK) { - throw exceptions::command_error("NOOP", m_connection->getParser()->lastLine()); + throw exceptions::command_error("NOOP", resp->getErrorLog()); } -- cgit v1.2.3