[Bluez-users] [Fwd: Bug#322732: bluez-utils: rfcomm bind fails with obscure error message]
A suggestion from a Debian user.
-------- Forwarded Message --------
Quoted 19 lines
From: Peter Hicks <[email protected]>
Reply-To: Peter Hicks <[email protected]>, [email protected]
To: Debian Bug Tracking System <[email protected]>
Subject: Bug#322732: bluez-utils: rfcomm bind fails with obscure error message
Date: Fri, 12 Aug 2005 15:16:03 +0100Package: bluez-utils
Version: 2.18-1
Severity: wishlistHello
When the 'rfcomm' kernel module isn't compiled with
CONFIG_BT_RFCOMM_TTYenabled, 'rfcomm bind' will fail with an obscure error message, "Can't create device: Operation not supported". It does this when it's trying to bind to a device in /dev.
Quoted 5 lines
Could this be changed to report something more useful, such as "Check rfcomm.ko is compiled with TTY support"?
Peter.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Edd,
Quoted 4 lines
Quoted 4 lines
When the 'rfcomm' kernel module isn't compiled with
CONFIG_BT_RFCOMM_TTYenabled, 'rfcomm bind' will fail with an obscure error message, "Can't create device: Operation not supported". It does this when it's trying to bind to a device in /dev.
this error message is correct. It follows the errno error code that comes back from the kernel.
Quoted 2 lines
Quoted 2 lines
Could this be changed to report something more useful, such as "Check rfcomm.ko is compiled with TTY support"?
What about a patch for the RFCOMM manual page that explains this problem?
Regards
Marcel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 9 lines · Marcel Holtmann
Hi Edd,
Quoted 4 lines
Quoted 4 lines
When the 'rfcomm' kernel module isn't compiled with
CONFIG_BT_RFCOMM_TTYenabled, 'rfcomm bind' will fail with an obscure error message, "Can't create device: Operation not supported". It does this when it's trying to bind to a device in /dev.this error message is correct. It follows the errno error code that comes back from the kernel.
There is a difference between "correct" and "helpful" ;)
You might at least consider pointing users to the manpage along with the generic error message for diagnosis of the error, because not too many will actually try the manpage.
Error codes are for scripts, error messages are for people. If you need the manpage to figure out what's wrong, then you could just as well print the error code only. Listing the error codes in the manpage should be only necessary to list all *possible* errors, so that scripts can handle all of them for instance.
regards
Fred
Signature · 13 lines
Fred Schaettgen [email protected] ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Fred,
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
When the 'rfcomm' kernel module isn't compiled with
CONFIG_BT_RFCOMM_TTYenabled, 'rfcomm bind' will fail with an obscure error message, "Can't create device: Operation not supported". It does this when it's trying to bind to a device in /dev.this error message is correct. It follows the errno error code that comes back from the kernel.
Quoted 9 lines
There is a difference between "correct" and "helpful" ;)
You might at least consider pointing users to the manpage along with the generic error message for diagnosis of the error, because not too many will actually try the manpage.
Error codes are for scripts, error messages are for people. If you need the manpage to figure out what's wrong, then you could just as well print the error code only. Listing the error codes in the manpage should be only necessary to list all *possible* errors, so that scripts can handle all of them for instance.
the command line tools are still the Unix world and an error which is called "Operation not supported" is from my perspective a clear error that the tool in use or the kernel lacks support for something. And in this specific case he compiled the kernel by itself and not included support for RFCOMM TTY in the rfcomm.ko module.
Said this, I don't like additional switch or if statements to add a lot of user friendly error messages to make the users feel better. For command line tools it is fine to expect people to open a manual page to investigate further. For graphical tools this is different, but the last time I checked rfcomm is still command line only ;)
Regards
Marcel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users