public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] [Fwd: Bug#322732: bluez-utils: rfcomm bind fails with obscure error message]
Date: Mon, 22 Aug 2005 16:20:19 +0200	[thread overview]
Message-ID: <1124720419.23599.37.camel@pegasus> (raw)
In-Reply-To: <200508221448.11084.bluez-user@schaettgen.de>

Hi Fred,

> > > > When the 'rfcomm' kernel module isn't compiled with
> > > > CONFIG_BT_RFCOMM_TTY enabled, '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.

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2005-08-22 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-21 21:00 [Bluez-users] [Fwd: Bug#322732: bluez-utils: rfcomm bind fails with obscure error message] Edd Dumbill
2005-08-22 11:12 ` Marcel Holtmann
2005-08-22 12:48   ` Fred Schaettgen
2005-08-22 14:20     ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1124720419.23599.37.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox