All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avery Pennarun <apenwarr@nit.ca>
To: Mark Williamson <Mark.Williamson@cl.cam.ac.uk>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: still can't start domain
Date: Thu, 8 Jul 2004 11:25:58 -0400	[thread overview]
Message-ID: <20040708152558.GD2502@worldvisions.ca> (raw)
In-Reply-To: <E1BiacA-0002k3-00@mta1.cl.cam.ac.uk>

On Thu, Jul 08, 2004 at 04:15:09PM +0100, Mark Williamson wrote:

> Hopefully we can add features to make debugging less of an issue as this new 
> code matures.  Any suggestions that could improve debug-ability,etc are (as 
> always) encouraged.

Clearer error messages than "Error: Cannot start domain" would probably be a
good start.  Anyone could have figured out in short order that the domain
couldn't be started.  What's much more important is *why* the domain
couldn't be started.

In general, error messages should always say why an operation failed, not
just that the operation failed.  I find that this works wonders in my own
programs.  In C programs, for example, always print out 'errno' in any error
message where it could possibly be relevant.  (Of course, to avoid
confusion, definitely don't print out errno where it's not valid anymore :))
The errno equivalent in perl is $!.  In python I guess you have to use
exceptions or something.

Have fun,

Avery


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

  reply	other threads:[~2004-07-08 15:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-08  0:41 still can't start domain James Harper
2004-07-08  2:47 ` ron minnich
2004-07-08  6:05   ` Ian Pratt
2004-07-08  8:57     ` Rune Johan Andresen
2004-07-08  9:03       ` Tom Wilkie
2004-07-08 11:05         ` Ian Pratt
2004-07-08 12:24     ` Mike Wray
2004-07-08 12:22 ` David Becker
2004-07-08 14:25   ` ron minnich
2004-07-08 15:15   ` Mark Williamson
2004-07-08 15:25     ` Avery Pennarun [this message]
2004-07-08 15:50       ` Ian Pratt
2004-07-08 19:03         ` Mark Williamson
2004-07-09  9:39           ` Rune Johan Andresen
2004-07-11  6:41             ` Ian Pratt
2004-07-11  9:40               ` James Harper
2004-07-11 19:30                 ` Ian Pratt
2004-07-12 16:40                   ` Jody Belka
2004-07-09 10:10           ` Rune Johan Andresen
2004-07-09 10:56             ` Keir Fraser
2004-07-09 11:18               ` Niraj Tolia
2004-07-09 12:54                 ` Rune Johan Andresen
2004-07-09 13:36                   ` Niraj Tolia
2004-07-10  8:12                   ` Ian Pratt
2004-07-08 16:15       ` Keir Fraser
2004-07-08 16:25         ` ron minnich
2004-07-09 17:31         ` Mike Wray
2004-07-09 18:41           ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2004-07-08 18:09 Brian Wolfe
     [not found] <E1Bjvbp-0007gP-00@mta1.cl.cam.ac.uk>
     [not found] ` <E1Bjw9x-0007xe-00@mta1.cl.cam.ac.uk>
2004-07-12 16:39   ` Jody Belka
2004-07-12 23:55 James Harper

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=20040708152558.GD2502@worldvisions.ca \
    --to=apenwarr@nit.ca \
    --cc=Mark.Williamson@cl.cam.ac.uk \
    --cc=xen-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.