diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-12-22 18:11:53 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-22 21:51:37 (GMT) |
commit | a6db572af6bc792590716856d80e8b9c02a55bec (patch) | |
tree | 303f1e392520b4bb16bbad1eac332e93f914c70a | |
parent | 99f0d97b736e80fb2f92f8a1a5fbc65b68c2a1b9 (diff) | |
download | git-a6db572af6bc792590716856d80e8b9c02a55bec.zip git-a6db572af6bc792590716856d80e8b9c02a55bec.tar.gz git-a6db572af6bc792590716856d80e8b9c02a55bec.tar.bz2 |
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>
-rw-r--r-- | refs/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/refs/debug.c b/refs/debug.c index 791423c..8a6bb15 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; } |