Browse Source

doc: give some guidelines for error messages

Clarify error message puntuation to reduce review workload.

Signed-off-by: Philip Oakley <philipoakley@iee.org>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Philip Oakley 11 years ago committed by Junio C Hamano
parent
commit
0ae0e882b2
  1. 9
      Documentation/CodingGuidelines

9
Documentation/CodingGuidelines

@ -264,6 +264,15 @@ For Python scripts: @@ -264,6 +264,15 @@ For Python scripts:
documentation for version 2.6 does not mention this prefix, it has
been supported since version 2.6.0.

Error Messages

- Do not end error messages with a full stop.

- Do not capitalize ("unable to open %s", not "Unable to open %s")

- Say what the error is first ("cannot open %s", not "%s: cannot open")


Writing Documentation:

Most (if not all) of the documentation pages are written in the

Loading…
Cancel
Save