Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-12-22 21:11:53 +0300
committerJunio C Hamano <gitster@pobox.com>2021-12-23 00:51:37 +0300
commita6db572af6bc792590716856d80e8b9c02a55bec (patch)
tree303f1e392520b4bb16bbad1eac332e93f914c70a /refs
parent99f0d97b736e80fb2f92f8a1a5fbc65b68c2a1b9 (diff)
refs: print error message in debug output
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r--refs/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/refs/debug.c b/refs/debug.c
index 791423c6a7..8a6bb157ee 100644
--- a/refs/debug.c
+++ b/refs/debug.c
@@ -47,7 +47,8 @@ static int debug_transaction_prepare(struct ref_store *refs,
transaction->ref_store = drefs->refs;
res = drefs->refs->be->transaction_prepare(drefs->refs, transaction,
err);
- trace_printf_key(&trace_refs, "transaction_prepare: %d\n", res);
+ trace_printf_key(&trace_refs, "transaction_prepare: %d \"%s\"\n", res,
+ err->buf);
return res;
}