Skip to content

Commit 000f0da

Browse files
mhaggergitster
authored andcommitted
verify_lock(): do not capitalize error messages
Our convention is for error messages to start with a lower-case letter. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 33ffc17 commit 000f0da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

refs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,12 +2234,12 @@ static int verify_lock(struct ref_lock *lock,
22342234
mustexist ? RESOLVE_REF_READING : 0,
22352235
lock->old_sha1, NULL)) {
22362236
int save_errno = errno;
2237-
strbuf_addf(err, "Can't verify ref %s", lock->ref_name);
2237+
strbuf_addf(err, "can't verify ref %s", lock->ref_name);
22382238
errno = save_errno;
22392239
return -1;
22402240
}
22412241
if (hashcmp(lock->old_sha1, old_sha1)) {
2242-
strbuf_addf(err, "Ref %s is at %s but expected %s",
2242+
strbuf_addf(err, "ref %s is at %s but expected %s",
22432243
lock->ref_name,
22442244
sha1_to_hex(lock->old_sha1),
22452245
sha1_to_hex(old_sha1));

0 commit comments

Comments
 (0)