D9249: forward socket error string to KTcpSocket

Martin Koller noreply at phabricator.kde.org
Fri Dec 8 12:46:05 UTC 2017


mkoller created this revision.
mkoller added a reviewer: dfaure.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  KTcpSocket is a QIODevice, internally using a Qt socket - however it does not set the error string of itself when the internal socket signals some error condition.
  
  The original problem I had with this was the PIM maildispatcher -  in the lack of any error string - just showing an error number when notifying the user. But a "Failed to transport message. 3" does not really say much to the user.
  
  Now at least I get "Failed to transport message. Host not found"

TEST PLAN
  using maildispatcher sending mail to an unknown host

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D9249

AFFECTED FILES
  src/core/ktcpsocket.cpp

To: mkoller, dfaure
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171208/6f214926/attachment.html>


More information about the Kde-frameworks-devel mailing list