Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* how to format an error?
@ 2002-01-13 20:36 Andrew Cagney
  2002-01-14  0:22 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2002-01-13 20:36 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

(no one commented last time, I'll try again).

Given the attached, which is the correct way of formatting an error message:

	This is an error message.
	this is an error message.
	This is an error message
	this is an error message

GDB (no suprize) does all of the above :-)

Andrew

[-- Attachment #2: [Fwd: [PATCH] Various source cleanup/enhancements] --]
[-- Type: message/rfc822, Size: 6537 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 110 bytes --]

What is the correct format of an error message string?  The attached, 
from binutils is interesting.

	Andrew

[-- Attachment #2.1.2: Re: [PATCH] Various source cleanup/enhancements --]
[-- Type: message/rfc822, Size: 3930 bytes --]

From: Alan Modra <amodra@bigpond.net.au>
To: Eric Christopher <echristo@redhat.com>
Cc: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>, binutils@sources.redhat.com
Subject: Re: [PATCH] Various source cleanup/enhancements
Date: Tue, 4 Dec 2001 09:04:24 +1030
Message-ID: <20011204090424.O1047@bubble.sa.bigpond.net.au>

On Mon, Dec 03, 2001 at 01:59:46PM -0800, Eric Christopher wrote:
> On Mon, 2001-12-03 at 13:57, Alan Modra wrote:
> > On Mon, Dec 03, 2001 at 01:47:04PM -0800, Eric Christopher wrote:
> > > Ok except for these.  Make sure they are capitals before checking in :)
> > 
> > Err, the standard (from gcc) for error messages is as Thiemo had it.
> > This text is prefixed with "Error: " so it doesn't start a sentence, and
> > thus should not start with a capital.
> 
> Ah ha.  Thanks :)

BTW, I'm not too sure about the rationale I gave regarding not starting
a sentence.  That opinion was just parroted from someone on the gcc list.
I'd say the text following the colon _is_ the start of a new sentence,
but I don't want to get into grammar wars.  :)

http://www.gnu.org/prep/standards_15.html#SEC15 says

"The string message should not begin with a capital letter when it follows
a program name and/or file name.  Also, it should not end with a period.

Error messages from interactive programs, and other messages such as usage
messages, should start with a capital letter.  But they should not end
with a period."



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-02-04  3:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-13 20:36 how to format an error? Andrew Cagney
2002-01-14  0:22 ` Eli Zaretskii
2002-01-14  2:37   ` Richard Earnshaw
2002-01-14  3:08     ` Eli Zaretskii
2002-02-02  8:09   ` Andrew Cagney
2002-02-02  9:27     ` Eli Zaretskii
2002-02-03 19:22       ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox