[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] [patch] usable error message
From: Thomas Zander <zander () kde ! org>
Date: 2005-06-06 10:17:21
Message-ID: 200506061217.32478.zander () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
I think not much people here will disagree that the attached patch is
needed; but I'm not sure its correct.
Please comment.
include me in cc's please, I'm not subscribed
--
Thomas Zander
[Attachment #5 (application/pgp-signature)]
["kandy-error.diff" (text/x-diff)]
Index: kandy/src/modem.cpp
===================================================================
--- kandy/src/modem.cpp (revision 422719)
+++ kandy/src/modem.cpp (working copy)
@@ -201,7 +201,9 @@
tcflush( fd, TCIOFLUSH );
if ( tcgetattr( fd, &init_tty ) == -1 ) {
- emit errorMessage( i18n( "tcgetattr() failed." ) );
+ int errnumber = errno;
+ emit errorMessage( i18n( "Communication setup failed (tcgetattr code: %1)" )
+ .arg(strerror(errnumber)) );
::close( fd );
fd = 0;
return false;
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic