Skip to content

Commit

Permalink
verify_lock(): do not capitalize error messages
Browse files Browse the repository at this point in the history
Our convention is for error messages to start with a lower-case
letter.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed May 27, 2015
1 parent 33ffc17 commit 000f0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2234,12 +2234,12 @@ static int verify_lock(struct ref_lock *lock,
mustexist ? RESOLVE_REF_READING : 0,
lock->old_sha1, NULL)) {
int save_errno = errno;
strbuf_addf(err, "Can't verify ref %s", lock->ref_name);
strbuf_addf(err, "can't verify ref %s", lock->ref_name);
errno = save_errno;
return -1;
}
if (hashcmp(lock->old_sha1, old_sha1)) {
strbuf_addf(err, "Ref %s is at %s but expected %s",
strbuf_addf(err, "ref %s is at %s but expected %s",
lock->ref_name,
sha1_to_hex(lock->old_sha1),
sha1_to_hex(old_sha1));
Expand Down

0 comments on commit 000f0da

Please sign in to comment.