ref_transaction_commit(): do not capitalize error messages
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>
This commit is contained in:
committed by
Junio C Hamano
parent
000f0da57a
commit
c2e0a718c6
4
refs.c
4
refs.c
@ -3922,7 +3922,7 @@ int ref_transaction_commit(struct ref_transaction *transaction,
|
||||
? TRANSACTION_NAME_CONFLICT
|
||||
: TRANSACTION_GENERIC_ERROR;
|
||||
reason = strbuf_detach(err, NULL);
|
||||
strbuf_addf(err, "Cannot lock ref '%s': %s",
|
||||
strbuf_addf(err, "cannot lock ref '%s': %s",
|
||||
update->refname, reason);
|
||||
free(reason);
|
||||
goto cleanup;
|
||||
@ -3945,7 +3945,7 @@ int ref_transaction_commit(struct ref_transaction *transaction,
|
||||
* write_ref_to_lockfile():
|
||||
*/
|
||||
update->lock = NULL;
|
||||
strbuf_addf(err, "Cannot update the ref '%s'.",
|
||||
strbuf_addf(err, "cannot update the ref '%s'.",
|
||||
update->refname);
|
||||
ret = TRANSACTION_GENERIC_ERROR;
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user