]> git.ipfire.org Git - thirdparty/git.git/commitdiff
refs: print error message in debug output
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 22 Dec 2021 18:11:53 +0000 (18:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Dec 2021 21:51:37 +0000 (13:51 -0800)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/debug.c

index 791423c6a7dc1e6f849068d689fd289b0063a89c..8a6bb157ee67a83e9f9916c3921c346b67450940 100644 (file)
@@ -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;
 }