Skip to content

Commit

Permalink
doc: give some guidelines for error messages
Browse files Browse the repository at this point in the history
Clarify error message puntuation to reduce review workload.

Signed-off-by: Philip Oakley <[email protected]>
Helped-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Philip Oakley authored and gitster committed Jul 10, 2014
1 parent 9a597ed commit 0ae0e88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/CodingGuidelines
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ae0e88

Please sign in to comment.